1It came about that when Adoni-zedek king of Jerusalem heard that Joshua had captured Ai and had devoted 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 an alliance with Israel and were among them.2They were very much afraid, because Gibeon was a large city, like one of the royal cities, and because it was larger than Ai, and all its men were warriors.3So 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,4Come up to me and help me, and let us strike Gibeon, for it has made an alliance with Joshua and with the sons of Israel.5Therefore 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 with all their armies, encamped against Gibeon, and fought against it.6The men of Gibeon sent to Joshua at the camp in Gilgal, saying: Do not slacken 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 mountain have gathered against us.7So Joshua went up from Gilgal, he and all the fighting men with him and all the mighty warriors of the army.8The LORD said to Joshua, Do not be afraid of them, for I have delivered them into your hand; not one of them will be able to stand before you.9Joshua came upon them suddenly, having marched up all night from Gilgal.10The LORD confused them before Israel and struck them with a great wound at Gibeon and pursued them by the way of the ascent of Beth-horon and struck them until Azekah and until Makkedah.11As they fled before Israel down the descent of Beth-horon, the LORD hurled large hailstones from heaven upon them as far as Azekah, and more died from the hailstones than the sons of Israel killed with the sword.12Then Joshua spoke to the LORD on the day when the LORD gave the Amorites before the sons of Israel, and he said in the sight of Israel: "Sun, be stationary over Gibeon, and moon over the valley of Aijalon."13So the sun was stationary, and the moon stood, until the nation avenged itself on its enemies. Is this not written upon the scroll of the upright? The sun stood in the middle of the heavens and did not hasten to come as on a whole day.14There has never been a day like it before or since, when the LORD listened to the voice of a man, because the LORD was fighting for Israel.15Then Joshua and all Israel with him returned to the camp at Gilgal.