Joshua summoned them, and he said to them, "Why did you deceive us, saying, 'We are very far from you,' when you dwell among us?
Now therefore you are cursed, and some of you shall always be slaves, hewers of wood and drawers of water for the house of my God."
They answered Joshua, "Because it was told to your servants for a certainty that the LORD your God had commanded his servant Moses to give you all the land, and to destroy all the inhabitants of the land from before you; so we feared greatly for our lives because of you, and did this thing.
And now, behold, we are in your hand: do as it seems good and right in your sight to do to us."
So he did to them, and delivered them out of the hand of the people of Israel; and they did not kill them.
But Joshua made them that day hewers of wood and drawers of water for the congregation and for the altar of the LORD, to continue to this day, in the place which he should choose.
When Ado'ni-ze'dek king of Jerusalem heard how Joshua had taken Ai, and had utterly destroyed it, 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,
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 mighty.
So Ado'ni-ze'dek king of Jerusalem sent to Hoham king of Hebron, to Piram king of Jarmuth, to Japhi'a king of Lachish, and to Debir king of Eglon, saying,
"Come up to me, and help me, and let us smite Gibeon; for it has made peace with Joshua and with the people of Israel."
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.
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 that dwell in the hill country are gathered against us."
So Joshua went up from Gilgal, he and all the people of war with him, and all the mighty men of valor.
And the LORD said to Joshua, "Do not fear them, for I have given them into your hands; there shall not a man of them stand before you."
So Joshua came upon them suddenly, having marched up all night from Gilgal.
And the LORD threw them into a panic before Israel, who slew them with a great slaughter at Gibeon, and chased them by the way of the ascent of Beth-hor'on, and smote them as far as Aze'kah and Makke'dah.
And as they fled before Israel, while they were going down the ascent of Beth-hor'on, the LORD threw down great stones from heaven upon them as far as Aze'kah, and they died; there were more who died because of the hailstones than the men of Israel killed with the sword.
Then spoke Joshua to the LORD in the day when the LORD gave the Amorites over to the men of Israel; and he said in the sight of Israel, "Sun, stand thou still at Gibeon, and thou Moon in the valley of Ai'jalon."
And the sun stood still, and the moon stayed, until the nation took vengeance on their enemies. Is this not written in the Book of Jashar? The sun stayed in the midst of heaven, and did not hasten to go down for about a whole day.
There has been no day like it before or since, when the LORD hearkened to the voice of a man; for the LORD fought for Israel.
Then Joshua returned, and all Israel with him, to the camp at Gilgal.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (Revised Standard Version - Holy Bible)