The LORD said to Joshua, “Do not be afraid or discouraged. Take all the troops with you and go attack Ai. Look, I have handed over to you the king of Ai, his people, city, and land.
“Treat Ai and its king as you did Jericho and its king, except that you may plunder its spoil and livestock for yourselves. Set an ambush behind the city.”
So Joshua and all the troops set out to attack Ai. Joshua selected thirty thousand of his best soldiers and sent them out at night.
He commanded them, “Pay attention. Lie in ambush behind the city, not too far from it, and all of you be ready.
“Then I and all the people who are with me will approach the city. When they come out against us as they did the first time, we will flee from them.
“They will come after us until we have drawn them away from the city, for they will say, ‘They are fleeing from us as before.’ While we are fleeing from them,
“you are to come out of your ambush and seize the city. The LORD your God will hand it over to you.
“After taking the city, set it on fire. Follow the LORD’s command — see that you do as I have ordered you.”
So Joshua sent them out, and they went to the ambush site and waited between Bethel and Ai, to the west of Ai. But he spent that night with the troops.
Joshua started early the next morning and mobilized them. Then he and the elders of Israel led the people up to Ai.
All the troops who were with him went up and approached the city, arriving opposite Ai, and camped to the north of it, with a valley between them and the city.
Now Joshua had taken about five thousand men and set them in ambush between Bethel and Ai, to the west of the city.
When the king of Ai saw the Israelites, the men of the city hurried and went out early in the morning so that he and all his people could engage Israel in battle at a suitable place facing the Arabah. But he did not know there was an ambush waiting for him behind the city.
Joshua and all Israel pretended to be beaten back by them and fled toward the wilderness.
Then all the troops of Ai were summoned to pursue them, and they pursued Joshua and were drawn away from the city.
Not a man was left in Ai or Bethel who did not go out after Israel, leaving the city exposed while they pursued Israel.
Then the LORD said to Joshua, “Hold out the javelin in your hand toward Ai, for I will hand the city over to you.” So Joshua held out his javelin toward it.
When he held out his hand, the men in ambush rose quickly from their position. They ran, entered the city, captured it, and immediately set it on fire.
The men of Ai turned and looked back, and smoke from the city was rising to the sky! They could not escape in any direction, and the troops who had fled to the wilderness now became the pursuers.
When Joshua and all Israel saw that the men in ambush had captured the city and that smoke was rising from it, they turned back and struck down the men of Ai.
Then men in ambush came out of the city against them, and the men of Ai were trapped between the Israelite forces, some on one side and some on the other. They struck them down until no survivor or fugitive remained,
When Israel had finished killing everyone living in Ai who had pursued them into the open country, and when every last one of them had fallen by the sword, all Israel returned to Ai and struck it down with the sword.
The total of those who fell that day, both men and women, was twelve thousand — all the people of Ai.
Joshua did not draw back his hand that was holding the javelin until all the inhabitants of Ai were completely destroyed.
Israel plundered only the cattle and spoil of that city for themselves, according to the LORD’s command that he had given Joshua.
just as Moses the LORD’s servant had commanded the Israelites. He built it according to what is written in the book of the law of Moses: an altar of uncut stones on which no iron tool has been used. Then they offered burnt offerings to the LORD and sacrificed fellowship offerings on it.
There on the stones, Joshua copied the law of Moses, which he had written in the presence of the Israelites.
All Israel — resident alien and citizen alike — with their elders, officers, and judges, stood on either side of the ark of the LORD’s covenant facing the Levitical priests who carried it. Half of them were in front of Mount Gerizim and half in front of Mount Ebal, as Moses the LORD’s servant had commanded earlier concerning blessing the people of Israel.
Afterward, Joshua read aloud all the words of the law — the blessings as well as the curses — according to all that is written in the book of the law.
Christian Standard Bible®, Copyright © 2017, 2020 by Holman Bible Publishers.
Additional information is provided here.
For more information on this translation, see the CSB Preface.