\v 1 Now when Adoni-Zedek, king of Jerusalem, heard that Joshua had captured Ai and had completely destroyed it (just as he had done to Jericho and its king), he also heard how the people of Gibeon had made peace with Israel and were living among them.
\v 2 The people of Jerusalem were very afraid because Gibeon was a large city, like one of the royal cities. It was larger than Ai, and all its men were mighty warriors.
\v 3 So Adoni-Zedek, king of Jerusalem, sent a message to Hoham, king of Hebron, to Piram, king of Jarmuth, to Japhia, king of Lachish, and to Debir, king of Eglon:
\v 5 The five kings of the Amorites, the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon came up, they and all their armies. They set up their positions against Gibeon, and they attacked it.
\v 6 The people of Gibeon sent a message to Joshua and to the army at Gilgal. They said, "Hurry! Do not withdraw your hands from your servants. Come up to us quickly and save us. Help us, for all the kings of the Amorites who live in the hill country have gathered together to attack us."
\v 10 Yahweh confused the enemy before Israel, and Israel killed them with a great slaughter at Gibeon and pursued them on the road going up to Beth Horon, and they killed them on the road to Azekah and Makkedah.
\v 11 As they ran away from Israel, down the hill from Beth Horon, Yahweh threw large stones down from heaven upon them all the way to Azekah, and they died. There were more who died because of the hailstones than who were killed with the sword by the men of Israel.
\v 12 Then Joshua spoke to Yahweh on the day Yahweh gave the men of Israel victory over the Amorites. This is what Joshua said to Yahweh before Israel,
\v 14 There has been no other day like it before or after it, when Yahweh obeyed the voice of a human being. For Yahweh was waging war on behalf of Israel.
\s5
\p
\v 15 Joshua and all Israel with him returned to the camp at Gilgal.
\p
\v 16 Now the five kings had escaped and hidden themselves in the cave at Makkedah.
\v 17 It was told to Joshua, "They have been found!—the five kings hidden in the cave at Makkedah!"
\v 19 Do not stay yourselves. Pursue your enemies and attack them from the rear. Do not permit them to enter into their cities, because Yahweh your God has given them into your hand."
\s5
\v 20 Joshua and the sons of Israel had finished slaughtering them with a very great slaughter, until they were almost completely destroyed; only a few survivors who escaped reached the fortified cities.
\v 22 Then Joshua said, "Open the mouth of the cave and out of the cave bring to me these five kings."
\v 23 They did as he said. They brought to him these five kings from the cave—the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon.
\v 24 When they brought the kings to Joshua, he summoned every man of Israel. He said to the commanders of the soldiers who had gone into battle with him, "Put your feet on their necks." So they came up and put their feet on their necks.
\v 25 Then he said to them, "Do not be afraid and do not be dismayed. Be strong and courageous. This is what Yahweh will do to all your enemies you are going to fight."
\v 27 When it was sunset, Joshua gave orders, and they took them down from the trees and threw them into the cave where they had hidden themselves. They put large stones over the mouth of the cave. Those stones remain there to this very day.
\v 28 In this way, Joshua captured Makkedah on that day and killed everyone there with the sword, including its king. He completely destroyed them and every living creature there. He left no survivors. He did to the king of Makkedah just as he had done to the king of Jericho.
\v 29 Joshua and all Israel passed on from Makkedah to Libnah. He went into battle against Libnah.
\v 30 Yahweh also gave it into the hand of Israel—along with their king. Joshua attacked every living creature in it with the sword. He did not leave a survivor alive in it. He did to the king just as he had done to the king of Jericho.
\v 32 Yahweh gave Lachish into the hand of Israel. Joshua captured it on the second day. He attacked with the sword every living creature that was in it, just as he had done to Libnah.
\v 37 They captured it and struck with the sword everyone in it, including the king and all its surrounding villages. They completely destroyed every living creature in it, leaving no survivors, just as Joshua had done to Eglon. He completely destroyed it, and every living creature in it.
\v 39 He captured it and its king, and all its nearby villages. They struck them with the sword and completely destroyed every living creature that was in it. Joshua left no survivors, just as he had done to Hebron and its king, and just as he had done to Libnah and its king.
\v 40 Joshua conquered all the land, the hill country, the Negev, the lowlands, and the foothills. Of all their kings he left not one survivor. He completely destroyed every living thing, just as Yahweh, the God of Israel, had commanded.