16 But when three days had passed after they had made a treaty with them, they heard that they were their neighbors and were living among them. 17So the Israelites set out and reached their cities on the third day. Now their cities were Gibeon, Chephirah, Beeroth, and Kiriath-jearim. 18But the Israelites did not attack them, because the leaders of the congregation had sworn to them by the LORD, the God of Israel. Then all the congregation murmured against the leaders. 19But all the leaders said to all the congregation, “We have sworn to them by the LORD, the God of Israel, and now we must not touch them. 20This is what we will do to them: We will let them live, so that wrath may not come upon us, because of the oath that we swore to them.” 21The leaders said to them, “Let them live.” So they became hewers of wood and drawers of water for all the congregation, as the leaders had decided concerning them.
22 Joshua summoned them, and said to them, “Why did you deceive us, saying, “We are very far from you,’ while in fact you are living among us? 23Now therefore you are cursed, and some of you shall always be slaves, hewers of wood and drawers of water for the house of my God.” 24They answered Joshua, “Because it was told to your servants for a certainty that the LORD your God had commanded his servant Moses to give you all the land, and to destroy all the inhabitants of the land before you; so we were in great fear for our lives because of you, and did this thing. 25And now we are in your hand: do as it seems good and right in your sight to do to us.” 26This is what he did for them: he saved them from the Israelites; and they did not kill them. 27But on that day Joshua made them hewers of wood and drawers of water for the congregation and for the altar of the LORD, to continue to this day, in the place that he should choose.
10 When King Adoni-zedek of Jerusalem heard how Joshua had taken Ai, and had utterly destroyed it, doing to Ai and its king as he had done to Jericho and its king, and how the inhabitants of Gibeon had made peace with Israel and were among them, 2he[16] became greatly frightened, because Gibeon was a large city, like one of the royal cities, and was larger than Ai, and all its men were warriors. 3So King Adoni-zedek of Jerusalem sent a message to King Hoham of Hebron, to King Piram of Jarmuth, to King Japhia of Lachish, and to King Debir of Eglon, saying, 4“Come up and help me, and let us attack Gibeon; for it has made peace with Joshua and with the Israelites.” 5Then 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 their forces, and went up with all their armies and camped against Gibeon, and made war against it.
6 And the Gibeonites sent to Joshua at the camp in Gilgal, saying, “Do not abandon your servants; come up to us quickly, and save us, and help us; for all the kings of the Amorites who live in the hill country are gathered against us.” 7So Joshua went up from Gilgal, he and all the fighting force with him, all the mighty warriors. 8The LORD said to Joshua, “Do not fear them, for I have handed them over to you; not one of them shall stand before you.” 9So Joshua came upon them suddenly, having marched up all night from Gilgal. 10And the LORD threw them into a panic before Israel, who inflicted a great slaughter on them at Gibeon, chased them by the way of the ascent of Beth-horon, and struck them down as far as Azekah and Makkedah. 11As they fled before Israel, while they were going down the slope of Beth-horon, the LORD threw down huge stones from heaven on them as far as Azekah, and they died; there were more who died because of the hailstones than the Israelites killed with the sword.
12 On the day when the LORD gave the Amorites over to the Israelites, Joshua spoke to the LORD; and he said in the sight of Israel,
“Sun, stand still at Gibeon,
and Moon, in the valley of Aijalon.”
13 And the sun stood still, and the moon stopped,
until the nation took vengeance on their enemies.
Is this not written in the Book of Jashar? The sun stopped in midheaven, and did not hurry to set for about a whole day. 14There has been no day like it before or since, when the LORD heeded a human voice; for the LORD fought for Israel.
15 Then Joshua returned, and all Israel with him, to the camp at Gilgal.
16 Meanwhile, these five kings fled and hid themselves in the cave at Makkedah. 17And it was told Joshua, “The five kings have been found, hidden in the cave at Makkedah.” 18Joshua said, “Roll large stones against the mouth of the cave, and set men by it to guard them; 19but do not stay there yourselves; pursue your enemies, and attack them from the rear. Do not let them enter their towns, for the LORD your God has given them into your hand.” 20When Joshua and the Israelites had finished inflicting a very great slaughter on them, until they were wiped out, and when the survivors had entered into the fortified towns, 21all the people returned safe to Joshua in the camp at Makkedah; no one dared to speak[17] against any of the Israelites.
22 Then Joshua said, “Open the mouth of the cave, and bring those five kings out to me from the cave.” 23They did so, and brought the 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. 24When they brought the kings out to Joshua, Joshua summoned all the Israelites, and said to the chiefs of the warriors who had gone with him, “Come near, put your feet on the necks of these kings.” Then they came near and put their feet on their necks. 25And Joshua said to them, “Do not be afraid or dismayed; be strong and courageous; for thus the LORD will do to all the enemies against whom you fight.” 26Afterward Joshua struck them down and put them to death, and he hung them on five trees. And they hung on the trees until evening. 27At sunset Joshua commanded, and they took them down from the trees and threw them into the cave where they had hidden themselves; they set large stones against the mouth of the cave, which remain to this very day.
28 Joshua took Makkedah on that day, and struck it and its king with the edge of the sword; he utterly destroyed every person in it; he left no one remaining. And he did to the king of Makkedah as he had done to the king of Jericho.
29 Then Joshua passed on from Makkedah, and all Israel with him, to Libnah, and fought against Libnah. 30The LORD gave it also and its king into the hand of Israel; and he struck it with the edge of the sword, and every person in it; he left no one remaining in it; and he did to its king as he had done to the king of Jericho.
31 Next Joshua