2 Samuel 18:4

Then the king said to them, “Whatever seems best to you I will do.” So the king stood beside the gate, and all the people went out by hundreds and thousands.

2 Samuel 18:24

Now David was sitting between the two gates; and the watchman went up to the roof of the gate by the wall, and raised his eyes and looked, and behold, a man running by himself.

1 Samuel 29:2

And the lords of the Philistines were proceeding on by hundreds and by thousands, and David and his men were proceeding on in the rear with Achish.

2 Samuel 18:1

Then David numbered the people who were with him and set over them commanders of thousands and commanders of hundreds.

Isaiah 28:6

A spirit of justice for him who sits in judgment,
A strength to those who repel the onslaught 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
Now David was sitting between the two gates; and the watchman went up to the roof of the gate by the wall, and raised his eyes and looked, and behold, a man running by himself.
Isaiah 28:6
A spirit of justice for him who sits in judgment,
A strength to those who repel the onslaught at the gate.

By hundreds

2 Samuel 18:1
Then David numbered the people who were with him and set over them commanders of thousands and commanders of hundreds.
1 Samuel 29:2
And the lords of the Philistines were proceeding on by hundreds and by thousands, and David and his men were proceeding on in the rear with Achish.