2 Samuel 18:4

4 The king answered, “I will do whatever seems best to you.” So the king stood beside the gate while all his men marched out in units of hundreds and of thousands.

Read 2 Samuel 18:4 Using Other Translations

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.
The king said to them, "Whatever seems best to you I will do." So the king stood at the side of the gate, while all the army marched out by hundreds and by thousands.
“If you think that’s the best plan, I’ll do it,” the king answered. So he stood alongside the gate of the town as all the troops marched out in groups of hundreds and of thousands.

What does 2 Samuel 18:4 mean?

John Gill's Exposition of the Bible
2 Samuel 18:4

And the king said unto them, what seemeth you best I will do,
&c.] Which was an instance of great condescension in him; and it was his wisdom and prudence to yield to them at such a time as this, and especially as their sentiments were founded on affection and loyalty to him:

and the king stood by the gate side;
of the city of Mahanaim:

and all the people came out by hundreds, and by thousands;
and passed by him, to whom no doubt he gave his blessing and best wishes; and, as Abarbinel thinks, now it was he composed and said the twentieth psalm, "The Lord hear thee in the day of trouble" ( Psalms 20:1-9 ) .

California - Do Not Sell My Personal Information  California - CCPA Notice