2 Samuel 18:4

And the king said to them, I will do whatever seems best to you. So the king took his place by the door of the town, and all the people went out by hundreds and by thousands.

2 Samuel 18:24

Now David was seated between the two town doors; and the watchman went up to the roof of the doorways, on the wall, and, lifting up his eyes, saw a man running by himself.

1 Samuel 29:2

And the lords of the Philistines went on with their hundreds and their thousands, and David and his men came after with Achish.

2 Samuel 18:1

And David had the people who were with him numbered, and he put over them captains of thousands and captains of hundreds.

Isaiah 28:6

And a spirit of wisdom to the judge, and strength to those who keep back the attackers at the door of the town.

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
Now David was seated between the two town doors; and the watchman went up to the roof of the doorways, on the wall, and, lifting up his eyes, saw a man running by himself.
Isaiah 28:6
And a spirit of wisdom to the judge, and strength to those who keep back the attackers at the door of the town.

By hundreds

2 Samuel 18:1
And David had the people who were with him numbered, and he put over them captains of thousands and captains of hundreds.
1 Samuel 29:2
And the lords of the Philistines went on with their hundreds and their thousands, and David and his men came after with Achish.

Basic English, produced by Mr C. K. Ogden of the Orthological Institute - public domain