21
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.
22
The men in the 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,
23
but they captured the king of Ai alive and brought him to Joshua.
24
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.
25
The total of those who fell that day, both men and women, was 12,000-all the people of Ai.