Now it came about when Adoni-zedek king of Jerusalem heard that Joshua had captured Ai, and had utterly destroyed 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 peace with Israel and were within their land,
that 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.
"Come up to me and help me, and let us attack Gibeon, for it has made peace with Joshua and with the sons of Israel."
So 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 and went up, they with all their armies, and camped by Gibeon and fought against it.
Then the men of Gibeon sent word to Joshua to the camp at Gilgal, saying, "Do not abandon your servants ; come up to us quickly and save us and help us, for all the kings of the Amorites that live in the hill country have assembled against us."
Then Joshua spoke to the LORD in the day when the LORD delivered up the Amorites before the sons of Israel, and he said in the sight of Israel, "O sun, stand still at Gibeon, And O moon in the valley of Aijalon."