David brought together the men who were with him. He appointed commanders of thousands over some of them. He appointed commanders of hundreds over the others.
Then David sent the troops out in three companies. One company was under the command of Joab. Another was under Joab's brother Abishai, the son of Zeruiah. The last was under Ittai, the Gittite. The king told the troops, "You can be sure that I myself will march out with you."
But the men said, "You must not march out. If we are forced to run away, our enemies won't care about us. Even if half of us die, they won't care. But you are worth 10,000 of us. So it would be better for you to stay here in the city. Then you can send us help if we need it."
The king said, "I'll do what you think is best." So the king stood beside the city gate. The whole army marched out in companies of hundreds and companies of thousands.
The king gave an order to Joab, Abishai and Ittai. He commanded them, "Be gentle with the young man Absalom. Do it for me." All of the troops heard the king give the commanders that order about Absalom.
David's army marched into the field to fight against Israel. The battle took place in the forest of Ephraim.
There David's men won the battle over Israel's army. A huge number of men were wounded or killed that day. The total number was 20,000.
The fighting spread out over the whole countryside. But more men were killed in the forest that day than out in the open.
Absalom happened to come across some of David's men. He was riding his mule. The mule went under the thick branches of a large oak tree. Absalom's head got caught in the tree. He was left hanging in the air. The mule he was riding kept on going.
One of David's men saw what had happened. He told Joab, "I just saw Absalom hanging in an oak tree."
Joab said to the man, "What! You saw him? Why didn't you strike him down right there? Then I would have had to give you four ounces of silver and a soldier's belt."
But the man replied, "I wouldn't lift my hand to harm the king's son. I wouldn't do it even for 25 pounds of silver. We heard the king's command to you and Abishai and Ittai. He said, 'Be careful not to hurt the young man Absalom. Do it for me.'
Suppose I had put my life in danger by killing him. The king would have found out about it. Nothing is hidden from him. And you wouldn't have stood up for me."
Joab said, "I'm not going to waste any more time on you." So he got three javelins. Then he went over and drove them into Absalom's heart. He did it while Absalom was still hanging there alive in the oak tree.
Ten of the men who were carrying Joab's armor surrounded Absalom. They struck him down and killed him.
Then Joab blew his trumpet. He ordered his troops to stop chasing Israel's army.
Joab's men threw Absalom's body into a big pit in the forest. They covered his body with a large pile of rocks. While all of that was going on, all of the Israelites ran back to their homes.
Earlier in his life Absalom had set up a pillar in the King's Valley. He had put it up as a monument to himself. He thought, "I don't have a son to carry on the memory of my name." So he named the pillar after himself. It is still called Absalom's Monument to this very day.