5 And the king commanded Joab and Abishai and Ittai, saying, [Deal] gently for my sake with the young man Absalom. And all the people heard when the king gave all the captains charge concerning Absalom. 6 And the people went out into the field against Israel; and the battle was in the forest of Ephraim. 7 And the people of Israel were routed before the servants of David, and there was a great slaughter there that day: twenty thousand men. 8 And the battle was there scattered over the face of all the country; and the forest devoured more people that day than the sword devoured.

9 And Absalom found himself in the presence of David's servants. And Absalom was riding upon a mule, and the mule went under the thick boughs of the great terebinth, and his head caught in the terebinth, and he was taken up between the heaven and the earth; and the mule that was under him went away. 10 And a man saw it, and told Joab, and said, Behold, I saw Absalom hanging in a terebinth. 11 And Joab said to the man that told him, And behold, thou sawest [him], and why didst thou not smite him there to the ground? and I would have given thee ten silver pieces and a girdle. 12 And the man said to Joab, Though I should receive a thousand silver pieces in my hand, yet would I not put forth my hand against the king's son; for in our hearing the king charged thee and Abishai and Ittai, saying, Take care, whoever it be [of you], of the young man Absalom. 13 Or I should have acted falsely against mine own life, for there is no matter concealed from the king, and thou wouldest have set thyself against [me]. 14 Then said Joab, I may not tarry thus with thee. And he took three spears in his hand, and thrust them into Absalom's body, while he was yet alive in the midst of the terebinth. 15 And ten young men that bore Joab's armour surrounded and smote Absalom, and killed him.

Matthew Henry's Commentary on 2 Samuel 18:5-15

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.

Commentary on 2 Samuel 18:9-18

(Read 2 Samuel 18:9-18)

Let young people look upon Absalom, hanging on a tree, accursed, forsaken of heaven and earth; there let them read the Lord's abhorrence of rebellion against parents. Nothing can preserve men from misery and contempt, but heavenly wisdom and the grace of God.