Do to Ai and its king what you did to Jericho and its king, except you may plunder its spoils and its livestock. Now set an ambush for the city behind it.”
As the partridge sits on eggs which it has not laid, so is he who gets riches, but not justly; it will forsake him in the midst of his days, and in the end he will be a fool.
Set up the standard against the walls of Babylon, make the watch strong, set up the watchmen, prepare the ambushes. For the Lord has both devised and done that which He spoke against the inhabitants of Babylon.
But the women, and the little ones, and the livestock, and all that is in the city, all the spoil within, you are to take to yourself, and you will eat the spoil of your enemies, which the Lord your God has given you.
Then the Lord said to me, “Do not fear him, for I will deliver him and all his people and his land into your hand; and you shall do to him as you did to Sihon, king of the Amorites, who lived at Heshbon.”
Now when King Adoni-Zedek of Jerusalem heard that Joshua captured Ai and 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,
Joshua took Makkedah that day and struck it and its king with the edge of the sword. He destroyed it and all life within it. He did not leave any survivors. He did to the king of Makkedah just as he did to the king of Jericho.
The Israelites plundered all the goods and the livestock of these cities, but they struck all the people with the edge of the sword until they destroyed them. They did not spare anyone who breathed.
When the king of Ai saw this, the men of the city hurriedly got up early and went out to engage Israel in battle at the assembly point near the Arabah. Yet he did not know that there was an ambush for him behind the city.
When his hand pointed, the men in ambush got up quickly from their place and ran. They came into the city, captured it, and quickly set the city on fire.
When Israel completed killing all the inhabitants of Ai in the open wilderness where they had pursued them, and when all of them had finally fallen by the edge of the sword, all Israel returned to Ai and struck it with the edge of the sword.
So Joshua sent them out. They went to the place of ambush and took up a position between Bethel and Ai, westward of Ai, and Joshua spent the night among the people.