You shall do to Ai and its king just as you did to Jericho and its king; you shall take only its spoils and its cattle as plunder for yourselves. Set an ambush for the city behind it.”
When they began singing and praising, the Lord set ambushes against the sons of Ammon, Moab, and Mount Seir, who had come against Judah; so they were struck down.
“Certainly every person walks around as a fleeting shadow; They certainly make an uproar for nothing; He amasses riches and does not know who will gather them.
“As a partridge that hatches eggs which it has not laid, So is a person who makes a fortune, but unjustly; In the middle of his days it will abandon him, And in the end he will be a fool.”
Lift up a signal flag against the walls of Babylon; Post a strong guard, Station sentries, Set up an ambush! For the Lord has both planned and performed What He spoke concerning the inhabitants of Babylon.
However, the women, the children, the animals, and everything that is in the city, all of its spoils, you shall take as plunder for yourself; and you shall use the spoils of your enemies which the Lord your God has given you.
But the Lord said to me, ‘Do not fear him, for I have handed him and all his people and his land over to you; and you shall do to him just as you did to Sihon king of the Amorites, who lived in Heshbon.’
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,
Now Joshua captured Makkedah on that day, and struck it and its king with the edge of the sword; he utterly destroyed it and every person who was in it. He left no survivor. So he did to the king of Makkedah just as he had done to the king of Jericho.
And all the spoils of these cities and the cattle, the sons of Israel took as their plunder; but they struck every person with the edge of the sword, until they had destroyed them. They left no one breathing.
And it came about, when the king of Ai saw them, that the men of the city hurried and got up early, and went out to meet Israel in battle, he and all his people at the appointed place before the desert plain. But he did not know that there was an ambush against him behind the city.
Then the men in ambush rose quickly from their place, and when he had reached out with his hand, they ran and entered the city and captured it, and they quickly set the city on fire.
Now when Israel had finished killing all the inhabitants of Ai in the field in the wilderness where they pursued them, and all of them had fallen by the edge of the sword until they were destroyed, then all Israel returned to Ai and struck it with the edge of the sword.
Then it will be when you have seized the city, that you shall set the city on fire. You shall do it in accordance with the word of the Lord. See, I have commanded you.”
So Joshua sent them away, and they went to the place of ambush and remained between Bethel and Ai, on the west side of Ai; but Joshua spent that night among the people.