Then Joab went inside and told the king, “Today you have humiliated all your men who have saved your life, and the lives of your sons, your daughters, your wives, and your concubines.
So the king got up and went to sit at the town gate. Everybody was told: “Look, the king is sitting at the town gate.” They all came to see the king. In the meantime the Israelites had run away and gone to their homes.
Everyone among the tribes of Israel were arguing with each other, saying, “The king rescued us from the persecution of our enemies, he saved us from the Philistines, but now he's had to run from the country because of Absalom.
A rabble-rouser called Sheba, son of Bichri, from the tribe of Benjamin, happened to be there. He blew the ram's horn and shouted: “We have no interest in David, no commitment to Jesse's son. Israelites, let's all go home!”
The woman went and talked with everyone about her wise plan. So they cut off the head of Sheba and threw it to Joab. Then Joab blew the ram's horn to sound the retreat, and all his men left the town and went home. Joab returned to the king in Jerusalem.
So Jehoram went over to Zair with all his chariots. The Edomites surrounded him and his chariot commanders, but he took action and attacked at night. But his army ran back to their homes.
Then all the men of his home town will stone him to death. You must eliminate the evil from among you, and every Israelite will hear about it and be afraid.
As the sun went down Joshua gave the order to take their bodies down from the trees and throw them into the cave where they had been hiding. Then the Israelites piled up stones over the entrance to the cave, and they are there to this very day.
They set up a great pile of stones over him which remains to this day. The Lord was no longer angry. This is why the place was called the Valley of Achor ever since.
He killed the king of Ai and hung his body on a tree until evening. When the sun went down Joshua ordered the body taken down. They threw it down in front of the entrance to the town gate and piled a heap of rocks over it which is still there today.
So the Philistines fought, and the Israelites were defeated—every man ran away home. The death toll was very large: thirty thousand of the Israelite infantry were killed.