Then you will do to Ai and its king as you did to Jericho and its king—except you will take its spoil and its cattle as plunder for yourselves. Set an ambush for the city behind it.”
As they began singing and praising, Adonai set ambushes against the children of Ammon, Moab, and Mount Seir who had come against Judah, and they were defeated.
As a partridge that broods over young that she did not lay, so is one who gets wealth, unjustly. In the middle of his days it will abandon him, so at his end he will be a fool.
Raise a banner at Babylon’s walls! Strengthen the guard. Station watchmen. Prepare ambushes. For Adonai has both planned and accomplished what He spoke about the Babylonians.
Only the women, children, livestock and all that is in the city—all its spoil—may you take as plunder for yourself. So you may consume your enemies’ spoil, which Adonai your God has given you.
But Adonai said to me, ‘Do not fear him, for I have handed him over and all his people and his land. You will do to him as you did to Sihon king of the Amorites, who lived in Heshbon.’
Now it came to pass that Adoni-zedek king of Jerusalem heard that Joshua had taken 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 remained among them.
On that day Joshua captured Makkedah and struck it and its king with the edge of the sword, putting it and every single soul in it under a ban of destruction, leaving no survivors. So he did to the king of Makkedah as he had done to the king of Jericho.
All the spoil of these cities and the cattle, Bnei-Yisrael took as their plunder, but they struck down every person with the edge of the sword until they had destroyed them, not sparing anyone who breathed.
So it came to pass when the king of Ai saw this, the men of the city hurried and rose up early, and went out to meet Israel in battle, he and all his people at the appointed place facing the Arabah. But he did not know that there was an ambush against him behind the city.
As soon as he stretched out his hand, the ambush arose quickly from their place, ran and entered the city and captured it; and immediately set the city on fire.
After Israel had finished killing all the inhabitants of Ai in the field in the wilderness where they pursued them, and all of them were fallen by the edge of the sword until they were consumed, all Israel returned to Ai and struck it with the edge of the sword.
So Joshua sent them off, and they went to the ambush site, taking position between Bethel and Ai, to the west of Ai. But Joshua spent that night among the people.