At this time Adoni-Zedek king of Jerusalem heard that Joshua had defeated Ai and completely destroyed it, as he had also done to Jericho and its king. The king also learned that the Gibeonites had made a peace agreement with Israel and that they lived nearby. Adoni-Zedek and his people were very afraid because of this. Gibeon was not a little town like Ai; it was a large city, as big as a city that had a king, and all its men were good fighters. So Adoni-Zedek king of Jerusalem sent a message to Hoham king of Hebron, Piram king of Jarmuth, Japhia king of Lachish, and Debir king of Eglon. He begged them, “Come with me and help me attack Gibeon, which has made a peace agreement with Joshua and the Israelites.”
Then these five Amorite kings—the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon—gathered their armies, went to Gibeon, surrounded it, and attacked it.
The Gibeonites sent this message to Joshua in his camp at Gilgal: “Don’t let us, your servants, be destroyed. Come quickly and help us! Save us! All the Amorite kings from the mountains have joined their armies and are fighting against us.”
So Joshua marched out of Gilgal with his whole army, including his best fighting men. The LORD said to Joshua, “Don’t be afraid of those armies, because I will hand them over to you. None of them will be able to stand against you.”
Joshua and his army marched all night from Gilgal for a surprise attack. The LORD confused those armies when Israel attacked, so Israel defeated them in a great victory at Gibeon. They chased them along the road going up to Beth Horon and killed men all the way to Azekah and Makkedah. As they chased the enemy down the Beth Horon Pass to Azekah, the LORD threw large hailstones on them from the sky and killed them. More people were killed by the hailstones than by the Israelites’ swords.
On the day that the LORD gave up the Amorites to the Israelites, Joshua stood before all the people of Israel and said to the LORD:
“Sun, stand still over Gibeon.
Moon, stand still over the Valley of Aijalon.”
So the sun stood still,
and the moon stopped
until the people defeated their enemies.
These words are written in the Book of Jashar.
The sun stopped in the middle of the sky and waited to go down for a full day. That has never happened at any time before that day or since. That was the day the LORD listened to a human being. Truly the LORD was fighting for Israel!