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.

2 Samuel 18:4 in Other Translations

KJV
4 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.
ESV
4 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.
NLT
4 “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.
MSG
4 "If you say so," said the king. "I'll do what you think is best." And so he stood beside the city gate as the whole army marched out by hundreds and by thousands.
CSB
4 "I will do whatever you think is best," the king replied to them. So he stood beside the gate while all the troops marched out by hundreds and thousands.

2 Samuel 18:4 Meaning and Commentary

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 ) .

2 Samuel 18:4 In-Context

2 David sent out his troops, a third under the command of Joab, a third under Joab’s brother Abishai son of Zeruiah, and a third under Ittai the Gittite. The king told the troops, “I myself will surely march out with you.”
3 But the men said, “You must not go out; if we are forced to flee, they won’t care about us. Even if half of us die, they won’t care; but you are worth ten thousand of us. It would be better now for you to give us support from the city.”
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.
5 The king commanded Joab, Abishai and Ittai, “Be gentle with the young man Absalom for my sake.” And all the troops heard the king giving orders concerning Absalom to each of the commanders.
6 David’s army marched out of the city to fight Israel, and the battle took place in the forest of Ephraim.
Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.