17There was not a man left in Ai and Bethel who had not gone out to pursue Israel. They abandoned the city and left it open as they pursued Israel.
18Yahweh said to Joshua, “Point that spear in your hand toward Ai, for I will give Ai into your hand.” Joshua held out the spear that was in his hand toward the city.
19The soldiers hiding in ambush quickly rushed out of their place as he reached out with his hand. They ran and entered the city and captured it. They quickly set the city on fire.
20The men of Ai turned and looked back. They saw the smoke from the city rising into the sky, and they could not escape this way or that. For the Israelite soldiers who had fled into the wilderness now turned back to face those who were pursuing them.
21When Joshua and all Israel saw the ambush had captured the city with the smoke rising, they turned around and killed the men of Ai.
22The other soldiers of Israel, those who had gone in the city, came out to attack them. So the men of Ai were caught between the armies of Israel, some on this side and some on that side. Israel attacked the men of Ai; none of them survived or escaped.