15 So Joshua and all Israel pretended to be beaten before them and fled by the way of the wilderness.
16 Then all the people who were in Ai were summoned to pursue them, so they pursued Joshua and were drawn away from the city.
17 Not a man was left in Ai or Bethel who did not go out after Israel, so they left the city open as they chased after Israel.
18 Then Adonai said to Joshua, “Stretch out the javelin that is in your hand toward Ai, for I will give it into your hand.” So Joshua stretched out the javelin that was in his hand toward the city.
19 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.
20 Now the men of Ai looked back and saw, behold, the smoke of the city rising up to the sky! They had no place to flee this way or that, since the people who had been fleeing to the wilderness turned back upon the pursuers.
21 When Joshua and all Israel saw that the ambush had captured the city and that the smoke of the city rose up, they turned back and struck down the men of Ai.