And the Lord said to Joshua: Do not fear nor be dismayed. Take with you all the men of war, and arise, go up to Ai. Behold, I have given into your hands the king of Ai and his land.
And you shall do to Ai as you did to Jericho and its king; and the plunder of the livestock you shall plunder for yourself. But set for yourself an ambush for the city behind it.
And I and all who are with me will approach the city; and it shall be that when the inhabitants of Ai come out to meet us, just as before, we will flee before them.
And it happened that when the king of Ai saw it, he hurried and went out straight to meet them for battle, he and all the people with him; and he did not know that there was an ambush against him behind the city.
And the Lord said to Joshua: Stretch out your hand with the javelin that is in your hand toward the city, for into your hands I have delivered it; and the ambush shall rise up quickly out of their place. And Joshua stretched out his hand with the javelin toward the city.
And the ambush rose up quickly out of their place and came out when he stretched out his hand; and they came to the city and captured it, and hurrying they burned the city with fire.
And the inhabitants of Ai looked around behind them and saw smoke going up from the city to heaven; and they no longer had anywhere to flee, this way or that.
And Joshua and all Israel saw that the ambush had taken the city and that the smoke of the city had gone up to heaven; and turning back they struck the men of Ai.
And these came out of the city to meet them, and they were in the midst of the camp, these on this side and these on that side; and they struck them until none of them was left surviving or escaping.
And when the sons of Israel finished killing all who were in Ai, those in the plains and on the mountain, on the descent where they pursued them from it, to the very end, then Joshua returned to Ai and struck it with the edge of the sword.
Only the livestock and the spoil that were in the city, all these the sons of Israel plundered, according to the command of the Lord, just as the Lord had directed Joshua.
And the king of Ai he hanged on a forked tree, and he was on the tree until evening; and at the setting of the sun Joshua gave orders, and they took down his body from the tree and threw him into the pit, and they raised over him a heap of stones, until this day.