Joshua 10-12 (ESV)
The Sun Stands Still
10:1 As soon as Adoni-zedek, king of Jerusalem, heard how Joshua had captured Ai and had devoted it to destruction,  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, 2 he 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 warriors.3 So Adoni-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 people of Israel.”5 Then 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 encamped against Gibeon and made war against it.
6 And the men of Gibeon sent to Joshua at the camp in Gilgal, saying, “Do not relax your hand 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 are gathered against us.” 7 So Joshua went up from Gilgal, he and all the people of war with him, and all the mighty men of valor. 8 And the Lord said to Joshua, “Do not fear them, for I have given them into your hands. Not a man of them shall stand before you.” 9 So Joshua came upon them suddenly, having marched up all night from Gilgal. 10 And the Lord threw them into a panic before Israel, who  struck them with a great blow at Gibeon and chased them by the way of the ascent of Beth-horon and struck them as far as Azekah and Makkedah. 11 And as they fled before Israel, while they were going down the ascent of Beth-horon, the Lord threw down large stones from heaven on them as far as Azekah, and they died. There were more who died because of the hailstones than the sons of Israel killed with the sword.
12 At that time Joshua spoke to the Lord in the day when the Lord gave the Amorites over to the sons of Israel, 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 the midst of heaven and did not hurry to set for about a whole day. 14 There has been no day like it before or since, when the Lord heeded the voice of a man, for the Lord fought for Israel.
15 So Joshua returned, and all Israel with him, to the camp at Gilgal.
Five Amorite Kings Executed
16 These five kings fled and hid themselves in the cave at Makkedah. 17 And it was told to Joshua, “The five kings have been found, hidden in the cave at Makkedah.” 18 And Joshua said, “Roll large stones against the mouth of the cave and set men by it to guard them, 19 but do not stay there yourselves. Pursue your enemies; attack their rear guard. Do not let them enter their cities, for the Lord your God has given them into your hand.” 20 When Joshua and the sons of Israel had finished striking them with a great blow until they were wiped out, and when the remnant that remained of them had entered into the fortified cities, 21 then all the people returned safe to Joshua in the camp at Makkedah. Not a man moved his tongue against any of the people of Israel.
22 Then Joshua said, “Open the mouth of the cave and bring those five kings out to me from the cave.” 23 And they did so, and brought those 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 And when they brought those kings out to Joshua, Joshua summoned 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.” Then they came near and put their feet on their necks. 25 And Joshua said to them, “Do not be afraid or dismayed; be strong and courageous. For thus the Lord will do to all your enemies against whom you fight.” 26 And 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 But at 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 where they had hidden themselves, and they set large stones against the mouth of the cave, which remain to this very day.
28 As for Makkedah, Joshua captured it on that day and struck it, and its king, with the edge of the sword. He devoted to destruction every person in it; he left none remaining. And he did to the king of Makkedah just as he had done to the king of Jericho.
Conquest of Southern Canaan
29 Then Joshua and all Israel with him passed on from Makkedah to Libnah and fought against Libnah. 30 And the 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 none remaining in it. And he did to its king as he had done to the king of Jericho.
31 Then Joshua and all Israel with him passed on from Libnah to Lachish and laid siege to it and fought against it. 32 And the Lord gave Lachish into the hand of Israel, and he captured it on the second day and struck it with the edge of the sword, and every person in it, as he had done to Libnah.
33 Then Horam king of Gezer came up to help Lachish. And Joshua struck him and his people, until he left none remaining.
34 Then Joshua and all Israel with him passed on from Lachish to Eglon. And they laid siege to it and fought against it. 35 And they captured it on that day, and struck it with the edge of the sword. And he devoted every person in it to destruction that day, as he had done to Lachish.
36 Then Joshua and all Israel with him went up from Eglon to Hebron. And they fought against it 37 and captured it and struck it with the edge of the sword, and its king and its towns, and every person in it. He left none remaining, as he had done to Eglon, and devoted it to destruction and every person in it.
38 Then Joshua and all Israel with him turned back to Debir and fought against it 39 and he captured it with its king and all its towns. And they struck them with the edge of the sword and devoted to destruction every person in it; he left none remaining. Just as he had done to Hebron and to Libnah and its king, so he did to Debir and to its king.
40 So Joshua struck the whole land, the hill country and the Negeb and the lowland and the slopes, and all their kings. He left none remaining, but devoted to destruction all that breathed, just as the Lord God of Israel commanded. 41 And Joshua struck them from Kadesh-barnea as far as Gaza, and all the country of Goshen, as far as Gibeon. 42 And Joshua captured all these kings and their land at one time, because the Lord God of Israel fought for Israel. 43 Then Joshua returned, and all Israel with him, to the camp at Gilgal.
Conquests in Northern Canaan
11:1 When Jabin, king of Hazor, heard of this, he sent to Jobab king of Madon, and to the king of Shimron, and to the king of Achshaph,2 and to the kings who were in the northern hill country, and in the Arabah south of Chinneroth, and in the lowland, and in Naphoth-dor on the west, 3 to the Canaanites in the east and the west, the Amorites, the Hittites, the Perizzites, and the Jebusites in the hill country, and the Hivites under Hermon in the land of Mizpah. 4 And they came out with all their troops, a great horde, in number like the sand that is on the seashore, with very many horses and chariots. 5 And all these kings joined their forces and came and encamped together at the waters of Merom to fight against Israel.
6 And the Lord said to Joshua, “Do not be afraid of them, for tomorrow at this time I will give over all of them, slain, to Israel. You shall hamstring their horses and burn their chariots with fire.” 7 So Joshua and all his warriors came suddenly against them by the waters of Merom and fell upon them. 8 And the Lord gave them into the hand of Israel, who struck them and chased them as far as Great Sidon and Misrephoth-maim, and eastward as far as the Valley of Mizpeh. And they struck them until he left none remaining. 9 And Joshua did to them just as the Lord said to him: he hamstrung their horses and burned their chariots with fire.
10 And Joshua turned back at that time and captured Hazor and struck its king with the sword, for Hazor formerly was the head of all those kingdoms. 11 And they struck with the sword all who were in it, devoting them to destruction;  there was none left that breathed. And he burned Hazor with fire. 12 And all the cities of those kings, and all their kings, Joshua captured, and struck them with the edge of the sword, devoting them to destruction, just as Moses the servant of the Lord had commanded. 13 But none of the cities that stood on mounds did Israel burn, except Hazor alone; that Joshua burned. 14 And all the spoil of these cities and the livestock, the people of Israel took for their plunder. But every man they struck with the edge of the sword until they had destroyed them, and they did not leave any who breathed.15 Just as the Lord had commanded Moses his servant, so Moses commanded Joshua, and so Joshua did. He left nothing undone of all that theLord had commanded Moses.
16 So Joshua took all that land, the hill country and all the Negeb and all the land of Goshen and the lowland and the Arabah and the hill country of Israel and its lowland 17 from Mount Halak, which rises toward Seir, as far as Baal-gad in the Valley of Lebanon below Mount Hermon. And he captured all their kings and struck them and put them to death. 18 Joshua made war a long time with all those kings.19 There was not a city that made peace with the people of Israel except the Hivites, the inhabitants of Gibeon. They took them all in battle.20 For it was the Lord‘s doing to harden their hearts that they should come against Israel in battle, in order that they should be devoted to destruction and should receive no mercy but be destroyed, just as the Lord commanded Moses.
21 And Joshua came at that time and cut off the Anakim from the hill country, from Hebron, from Debir, from Anab, and from all the hill country of Judah, and from all the hill country of Israel. Joshua devoted them to destruction with their cities. 22 There was none of the Anakim left in the land of the people of Israel. Only in Gaza, in Gath, and in Ashdod did some remain. 23 So Joshua took the whole land, according to all that the Lord had spoken to Moses. And Joshua gave it for an inheritance to Israel according to their tribal allotments. And the land had rest from war.
Kings Defeated by Moses
12:1 Now these are the kings of the land whom the people of Israel defeated and took possession of their land beyond the Jordan toward the sunrise, from the Valley of the Arnon to Mount Hermon, with all the Arabah eastward: 2 Sihon king of the Amorites who lived at Heshbon and ruled from Aroer, which is on the edge of the Valley of the Arnon, and from the middle of the valley as far as the river Jabbok, the boundary of the Ammonites, that is, half of Gilead, 3 and the Arabah to the Sea of Chinneroth eastward, and in the direction of Beth-jeshimoth, to the Sea of the Arabah, the Salt Sea, southward to the foot of the slopes of Pisgah; 4 and Og  king of Bashan, one of the remnant of the Rephaim, who lived at Ashtaroth and at Edrei 5 and ruled over Mount Hermon and Salecah and all Bashan to the boundary of the Geshurites and the Maacathites, and over half of Gilead to the boundary of Sihon king of Heshbon. 6 Moses, the servant of the Lord, and the people of Israel defeated them. And Moses the servant of the Lord gave their land for a possession to the Reubenites and the Gadites and the half-tribe of Manasseh.
Kings Defeated by Joshua
7 And these are the kings of the land whom Joshua and the people of Israel defeated on the west side of the Jordan, from Baal-gad in the Valley of Lebanon to Mount Halak, that rises toward Seir (and Joshua gave their land to the tribes of Israel as a possession according to their allotments, 8 in the hill country, in the lowland, in the Arabah, in the slopes, in the wilderness, and in the Negeb, the land of the Hittites, the Amorites, the Canaanites, the Perizzites, the Hivites, and the Jebusites): 9 the king of Jericho, one; the king of Ai, which is beside Bethel, one;10 the king of Jerusalem, one; the king of Hebron, one; 11 the king of Jarmuth, one; the king of Lachish, one; 12 the king of Eglon, one; the king of Gezer, one; 13 the king of Debir, one; the king of Geder, one; 14 the king of Hormah, one; the king of Arad, one; 15 the king of Libnah, one; the king of Adullam, one; 16 the king of Makkedah, one; the king of Bethel, one; 17 the king of Tappuah, one; the king of Hepher, one;18 the king of Aphek, one; the king of Lasharon, one; 19 the king of Madon, one; the king of Hazor, one; 20 the king of Shimron-meron, one; the king of Achshaph, one; 21 the king of Taanach, one; the king of Megiddo, one; 22 the king of Kedesh, one; the king of Jokneam in Carmel, one; 23 the king of Dor in Naphath-dor, one; the king of Goiim in Galilee,  one; 24 the king of Tirzah, one: in all, thirty-one kings.