2 Samuel 18:4

I will do what you think best, the king answered. Then he stood by the side of the gate as his men marched out in units of a thousand and of a hundred.

2 Samuel 18:24

David was sitting between the two gates. The watchman walked along the roof of the gate by the wall. He looked at the man running alone.

1 Samuel 29:2

The five Philistine kings marched with units of a hundred and of a thousand men. David and his men marched in the rear with King Achish.

2 Samuel 18:1

David called the troops that were with him. He appointed commanders in charge of regiments and battalions.

Isaiah 28:6

He will be a spirit of justice to him who sits in judgment, a source of strength to those who repel the attack at the gate.

Treasury of Scripture Knowledge

Summary

And the king said unto them, What seemeth you best I will do. And the king stood by the gate side, and all the people came out by hundreds and by thousands.

Bible References

By the gate

2 Samuel 18:24
David was sitting between the two gates. The watchman walked along the roof of the gate by the wall. He looked at the man running alone.
Isaiah 28:6
He will be a spirit of justice to him who sits in judgment, a source of strength to those who repel the attack at the gate.

By hundreds

2 Samuel 18:1
David called the troops that were with him. He appointed commanders in charge of regiments and battalions.
1 Samuel 29:2
The five Philistine kings marched with units of a hundred and of a thousand men. David and his men marched in the rear with King Achish.