5 Now the king had commanded Joab, 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 orders concerning Absalom. 6 So the people went out into the field of battle against Israel. And the battle was in the woods of Ephraim. 7 The people of Israel were overthrown there before the servants of David, and a great slaughter of twenty thousand took place there that day. 8 For the battle there was scattered over the face of the whole countryside, and the woods devoured more people that day than the sword devoured.

9 Then Absalom met the servants of David. Absalom rode on a mule. The mule went under the thick boughs of a great terebinth tree, and his head caught in the terebinth; so he was left hanging between heaven and earth. And the mule which was under him went on. 10 Now a certain man saw it and told Joab, and said, "I just saw Absalom hanging in a terebinth tree!" 11 So Joab said to the man who told him, "You just saw him! And why did you not strike him there to the ground? I would have given you ten shekels of silver and a belt." 12 But the man said to Joab, "Though I were to receive a thousand shekels of silver in my hand, I would not raise my hand against the king's son. For in our hearing the king commanded you and Abishai and Ittai, saying, 'Beware lest anyone touch the young man Absalom!' 13 Otherwise I would have dealt falsely against my own life. For there is nothing hidden from the king, and you yourself would have set yourself against me." 14 Then Joab said, "I cannot linger with you." And he took three spears in his hand and thrust them through Absalom's heart, while he was still alive in the midst of the terebinth tree. 15 And ten young men who bore Joab's armor surrounded Absalom, and struck 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.