1When Adoni-zedek king of Jerusalem heard that Joshua had captured Ai and devoted it to destruction — just as he had done to Jericho and its king, so he had done to Ai and its king — and that the inhabitants of Gibeon had made peace with Israel and were among them, 2they feared greatly, because Gibeon was a great city, like one of the royal cities, and because it was greater than Ai, and all its men were mighty. 3Adoni-zedek king of Jerusalem sent to Hoham king of Hebron, to Piram king of Jarmuth, to Japhia king of Lachish, and to Debir king of Eglon, saying: 4“Come up to me and help me, and let us strike Gibeon, for it has made peace with Joshua and with the sons of Israel.” 5The five kings of the Amorites gathered and went up — the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, the king of Eglon — they and all their camps, and they camped against Gibeon and fought against it.
6The men of Gibeon sent to Joshua, to the camp at Gilgal, saying, “Do not let your hand go slack from your servants. Come up to us quickly, and save us and help us, for all the kings of the Amorites who dwell in the hill country have gathered against us.” 7Joshua went up from Gilgal, he and all the people of war with him, and all the mighty men of strength.
8Adonai said to Joshua, “Do not fear them, for I have given them into your hand. Not a man of them shall stand before you.” 9Joshua came to them suddenly. All night he went up from Gilgal. 10Adonai threw them into confusion before Israel, and he struck them with a great blow at Gibeon, and pursued them by the way of the ascent of Beth-horon, and struck them as far as Azekah and as far as Makkedah. 11As they fled before Israel, while they were on the descent of Beth-horon, Adonai threw down on them great stones from the heavens as far as Azekah, and they died. More died by the stones of hail than the sons of Israel killed with the sword.
12Then Joshua spoke to Adonai, on the day Adonai gave the Amorites before the sons of Israel, and he said before the eyes of Israel: “Sun, at Gibeon be still, and moon, in the Valley of Aijalon.” 13And the sun was still, and the moon stood, until the nation took vengeance on its enemies. Is this not written in the Book of Jashar? And the sun stood in the middle of the heavens and did not hurry to go down, for about a whole day. 14There has been no day like it, before it or after it, when Adonai listened to the voice of a man, for Adonai fought for Israel.
15Joshua returned, and all Israel with him, to the camp at Gilgal. 16These five kings fled and hid in the cave at Makkedah. 17It was told to Joshua, saying, “The five kings have been found, hidden in the cave at Makkedah.”
18Joshua said, “Roll great stones to the mouth of the cave, and set men over it to guard them. 19And you, do not stand still. Pursue after your enemies and strike their rear. Do not let them enter their cities, for Adonai your Elohim has given them into your hand.” 20When Joshua and the sons of Israel had finished striking them with a very great blow, until they were finished, the survivors who survived from them entered the fortified cities. 21All the people returned to the camp, to Joshua at Makkedah, in peace. No one sharpened his tongue against any of the sons of Israel.
22Joshua said, “Open the mouth of the cave and bring out to me these five kings from the cave.” 23They did so, and brought out to him these five kings from the cave: the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, the king of Eglon. 24When they brought out these kings to Joshua, Joshua called to all the men of Israel and said to the commanders of the men of war who had gone with him, “Come near. Put your feet on the necks of these kings.” They came near and put their feet on their necks. 25Joshua said to them, “Do not fear and do not be dismayed. Be strong and be firm, for so Adonai will do to all your enemies against whom you fight.” 26Afterward Joshua struck them and killed them and hanged them on five trees, and they hung on the trees until evening. 27At the time of the going down of the sun, Joshua commanded, and they took them down from the trees and threw them into the cave in which they had hidden, and set great stones at the mouth of the cave, to this very day.
28Joshua captured Makkedah on that day and struck it by the edge of the sword, and its king. He devoted them to destruction, and every person who was in it. He left no survivor. He did to the king of Makkedah just as he had done to the king of Jericho. 29Joshua passed, and all Israel with him, from Makkedah to Libnah, and fought against Libnah. 30Adonai gave it also, and its king, into the hand of Israel, and he struck it by the edge of the sword, and every person who was in it. He left no survivor in it. He did to its king just as he had done to the king of Jericho. 31Joshua passed, and all Israel with him, from Libnah to Lachish, and camped against it and fought against it. 32Adonai gave Lachish into the hand of Israel, and he captured it on the second day and struck it by the edge of the sword, and every person who was in it, according to all that he had done to Libnah. 33Then Horam king of Gezer came up to help Lachish, and Joshua struck him and his people, until he left him no survivor.
34Joshua passed, and all Israel with him, from Lachish to Eglon, and they camped against it and fought against it. 35They captured it on that day and struck it by the edge of the sword. And every person who was in it he devoted to destruction on that day, according to all that he had done to Lachish. 36Joshua went up, and all Israel with him, from Eglon to Hebron, and they fought against it. 37They captured it and struck it by the edge of the sword, and its king and all its cities and every person who was in it. He left no survivor, according to all that he had done to Eglon. He devoted it to destruction, and every person who was in it. 38Joshua turned back, and all Israel with him, to Debir, and fought against it. 39He captured it, and its king and all its cities, and they struck them by the edge of the sword and devoted to destruction every person who was in it. He left no survivor. Just as he had done to Hebron, so he did to Debir and to its king, and just as he had done to Libnah and to its king.
40Joshua struck the whole land — the hill country, the Negev, the lowland, the slopes — and all their kings. He left no survivor, and he devoted to destruction everything that breathed, just as Adonai, the Elohim of Israel, had commanded. 41Joshua struck them from Kadesh-barnea as far as Gaza, and all the land of Goshen as far as Gibeon. 42All these kings and their land Joshua captured at one time, because Adonai, the Elohim of Israel, fought for Israel. 43Joshua returned, and all Israel with him, to the camp at Gilgal.