1 Now it came about when Adoni-zedek king of Jerusalem heard that Joshua had captured Ai, and had utterlydestroyed it (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 within their land,
2 that he feared greatly, because Gibeonwas a great city, like one of the royal cities, and because it was greater than Ai, and all its men were mighty.
3 Therefore Adoni-zedek king of Jerusalem sent word to Hoham king of Hebron and to Piram king of Jarmuth and to Japhia king of Lachish and to Debir king of Eglon, saying,
4 "Come up to me and help me, and let us attack Gibeon, for it has made peace with Joshua and with the sons of Israel."
5 So 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, gathered together and went up, they with all their armies, and camped by Gibeon and fought against it.
7 So Joshua went up from Gilgal, he and all the people of war with him and all the valiant warriors.
8 The LORD said to Joshua, "Do not fear them, for I have given them into your hands; not one of them shall stand before you."
9 So Joshua came upon them suddenly by marching all night from Gilgal.
10 And the LORD confounded them before Israel, and He slew them with a great slaughter at Gibeon, and pursued them by the way of the ascent of Beth-horon and struck them as far as Azekah and Makkedah.
11 As they fled from beforeIsrael, while they were at the descent of Beth-horon, the LORD threw large stones from heaven on them as far as Azekah, and they died; there were more who died from the hailstones than those whom the sons of Israelkilled with the sword.
13 So the sun stood still, and the moon stopped, Until the nationavenged themselves of their enemies. Is it not written in the book of Jashar? And the sun stopped in the middle of the sky and did not hasten to go down for about a whole day.
14 There was no day like that before it or after it, when the LORD listened to the voice of a man; for the LORD fought for Israel.
17 It was told Joshua, saying, "The five kings have been found hidden in the cave at Makkedah."
18 Joshua said, "Roll large stones against the mouth of the cave, and assign men by it to guard them,
19 but do not stay there yourselves; pursue your enemies and attack them in the rear. Do not allow them to enter their cities, for the LORD your God has delivered them into your hand."
20 It came about when Joshua and the sons of Israel had finished slaying them with a very great slaughter, until they were destroyed, and the survivors who remained of them had entered the fortified cities,
21 that all the people returned to the camp to Joshua at Makkedah in peace. No one uttered a word against any of the sons of Israel.
23 They did so, and brought these five kings out to him from the cave: the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon.
24 When they brought these kings out to Joshua, Joshua called for all the men of Israel, and said to the chiefs of the men of war who had gone with him, "Come near, put your feet on the necks of these kings." So they came near and put their feet on their necks.
25 Joshua then said to them, "Do not fear or be dismayed! Be strong and courageous, for thus the LORD will do to all your enemies with whom you fight."
26 So afterward Joshua struck them and put them to death, and he hanged them on five trees; and they hung on the trees until evening.
27 It came about at sunset that Joshua gave a command, and they took them down from the trees and threw them into the cave where they had hidden themselves, and put large stones over the mouth of the cave, to this very day.
30 The LORD gave it also with its king into the hands of Israel, and he struck it and every person who was in it with the edge of the sword. He left no survivor in it. Thus he did to its king just as he had done to the king of Jericho.
32 The LORD gave Lachish into the hands of Israel; and he captured it on the second day, and struck it and every person who was in it with the edge of the sword, according to all that he had done to Libnah.
35 They captured it on that day and struck it with the edge of the sword; and he utterlydestroyed that day every person who was in it, according to all that he had done to Lachish.
37 They captured it and struck it and its king and all its cities and all the persons who were in it with the edge of the sword. He left no survivor, according to all that he had done to Eglon. And he utterlydestroyed it and every person who was in it.
39 He captured it and its king and all its cities, and they struck them with the edge of the sword, and utterlydestroyed every person who was in it. He left no survivor. Just as he had done to Hebron, so he did to Debir and its king, as he had also done to Libnah and its king.