181 And David had the people who were with him numbered, and he put over them captains of thousands and captains of hundreds. 2 And David sent the people out, a third of them under the orders of Joab, and a third under the orders of Abishai, son of Zeruiah, Joab's brother, and a third under Ittai the Gittite. And the king said to the people, And I myself will certainly go out with you. 3 But the people said, It is better for you not to go out: for if we are put to flight, they will not give a thought to us, and if death overtakes half of us, it will be nothing to them: but you are of more value than ten thousand of us: so it is better for you to be ready to come to our help from this town. 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.
Matthew Henry's Commentary on 2 Samuel 18:1-4
Commentary on 2 Samuel 18:1-8
(Read 2 Samuel 18:1-8)
How does David render good for evil! Absalom would have only David smitten; David would have only Absalom spared. This seems to be a resemblance of man's wickedness towards God, and God's mercy to man, of which it is hard to say which is most amazing. Now the Israelites see what it is to take counsel against the Lord and his anointed.