1 Adoni-zedek, king of Jerusalem, heard that Joshua had captured and completely destroyed 1 Ai and killed its king, just as he had destroyed the town of Jericho and killed its king. He also learned that the Gibeonites had made peace with Israel and were now their allies. 2 He and his people became very afraid when they heard all this because Gibeon was a large town - as large as the royal cities and larger than Ai. And the Gibeonite men were strong warriors. 3 So King Adoni-zedek of Jerusalem sent messengers to several other kings: Hoham of Hebron, Piram of Jarmuth, Japhia of Lachish, and Debir of Eglon. 4 “Come and help me destroy Gibeon,” he urged them, “for they have made peace with Joshua and the people of Israel.” 5 So these five Amorite kings combined their armies for a united attack. They moved all their troops into place and attacked Gibeon.
The men of Gibeon quickly sent messengers to Joshua at his camp in Gilgal. “Don’t abandon your servants now!” they pleaded. “Come at once! Save us! Help us! For all the Amorite kings who live in the hill country have joined forces to attack us.”
7 So Joshua and his entire army, including his best warriors, left Gilgal and set out for Gibeon. 8 “Do not be afraid of them,” the Lord said to Joshua, “for I have given you victory over them. Not a single one of them will be able to stand up to you.” 9 Joshua traveled all night from Gilgal and took the Amorite armies by surprise. 10 The Lord threw them into a panic, and the Israelites slaughtered great numbers of them at Gibeon. Then the Israelites chased the enemy along the road to Beth-horon, killing them all along the way to Azekah and Makkedah. 11 As the Amorites retreated down the road from Beth-horon, the Lord destroyed them with a terrible hailstorm from heaven that continued until they reached Azekah. The hail killed more of the enemy than the Israelites killed with the sword.
On the day the Lord gave the Israelites victory over the Amorites, Joshua prayed to the Lord in front of all the people of Israel. He said,
“Let the sun stand still over Gibeon,
and the moon over the valley of Aijalon.”
So the sun stood still and the moon stayed in place until the nation of Israel had defeated its enemies.
Is this event not recorded in The Book of Jashar 2 ? The sun stayed in the middle of the sky, and it did not set as on a normal day. 3 14 There has never been a day like this one before or since, when the Lord answered such a prayer. Surely the Lord fought for Israel that day!
Then Joshua and the Israelite army returned to their camp at Gilgal.