You will do to Ai and its king what you did to Jericho and its king. However, this time you may keep for yourselves the plunder and the livestock. Set up an ambush behind the town.”
As soon as they started singing and praising, the Lord ambushed the men of Ammon, Moab, and Mount Seir who were coming to attack Judah, and they were defeated.
Like a partridge hatching eggs it didn't lay is someone who makes a fortune by cheating others. Their riches will fly away at midday, and in the end they'll look like a fool.
Raise the signal flag to attack the walls of Babylon; strengthen the guard; have the watchmen take their places; get the ambush ready. The Lord planned and carried out his threats against the people of Babylon.
But you can take as plunder the women, children, livestock, and everything else in the town. You can take and use all your enemies' possessions the Lord your God gives you.
But the Lord told me, “Don't be afraid of him, for I have handed him over to you, together with all his people and his land. Deal with him as you did with Sihon, king of the Amorites, who ruled in Heshbon.”
Adoni-zedek, king of Jerusalem, learned that Joshua had captured Ai and destroyed the town completely, as he had also done to Jericho, and had killed its king, just as he had the king of Jericho. He also heard that the Gibeonites had made peace with the Israelites and were allied with them.
That day Joshua captured Makkedah, killing all its inhabitants, including the king. He set it apart and completely destroyed it and everyone in it, leaving no survivors. He killed the king of Makkedah just as he had killed the king of Jericho.
The Israelites did take for themselves all the plunder and livestock from these towns. But they killed all the inhabitants, destroying them all so none were left alive.
As soon as the king of Ai saw the situation, he and all his men rushed out early in the morning to attack the Israelites where they had before, at a place overlooking the Jordan valley. He didn't know about the ambush waiting on the other side of the town.
When the Israelites had finished killing the men of Ai who had chased them towards the wilderness—once they had all been cut down by the sword—the whole Israelite army returned to the town and killed everyone living there.