After an all-night march from Gilgal, Joshua took them by surprise. The Lord threw them into confusion before Israel, who defeated them in a great victory at Gibeon. Israel pursued them along the road going up to Beth Horon and cut them down all the way to Azekah and Makkedah. As they fled before Israel on the road down from Beth Horon to Azekah, the Lord hurled large hailstones down on them from the sky, and more of them died from the hailstones than were killed by the swords of the Israelites.
On the day the Lord gave the Amorites over to Israel, Joshua said to the Lord in the presence of Israel: "O sun, stand still over Gibeon, O moon, over the Valley of Aijalon."
So the sun stood still, and the moon stopped, till the nation avenged itself on its enemies, as it is written in the Book of Jashar. The sun stopped in the middle of the sky and delayed going down about a full day. There has never been a day like it before or since, a day when the Lord listened to a man. Surely the Lord was fighting for Israel!
~ Joshua 10:9-13, NIV