Then Joshua returned with all Israel to the camp at Gilgal.
Now the five kings had fled and hidden in the cave at Makkedah.
When Joshua was told that the five kings had been found hiding in the cave at Makkedah,
he said, “Roll large rocks up to the mouth of the cave, and post some men there to guard it.
But don’t stop; pursue your enemies! Attack them from the rear and don’t let them reach their cities, for the LORD your God has given them into your hand.”
So Joshua and the Israelites defeated them completely, but a few survivors managed to reach their fortified cities.
The whole army then returned safely to Joshua in the camp at Makkedah, and no one uttered a word against the Israelites.
Joshua said, “Open the mouth of the cave and bring those five kings out to me.”
So they brought the five kings out of the cave—the kings of Jerusalem, Hebron, Jarmuth, Lachish and Eglon.
When they had brought these kings to Joshua, he summoned all the men of Israel and said to the army commanders who had come with him, “Come here and put your feet on the necks of these kings.” So they came forward and placed their feet on their necks.
Joshua said to them, “Do not be afraid; do not be discouraged. Be strong and courageous. This is what the LORD will do to all the enemies you are going to fight.”
Then Joshua put the kings to death and exposed their bodies on five poles, and they were left hanging on the poles until evening.
At sunset Joshua gave the order and they took them down from the poles and threw them into the cave where they had been hiding. At the mouth of the cave they placed large rocks, which are there to this day.