Joshua 8:23-25 (YLT)
23 and the king of Ai they caught alive, and bring him near unto Joshua.
24 And it cometh to pass, at Israel's finishing to slay all the inhabitants of Ai in the field, in the wilderness in which they pursued them (and they fall all of them by the mouth of the sword till their consumption), that all Israel turn back to Ai, and smite it by the mouth of the sword;
25 and all who fall during the day, of men and of women, are twelve thousand--all men of Ai.
About Joshua 8: Joshua 8 follows the defeat at Ai in chapter 7. After the sin of Achan was dealt with, God tells Joshua to take all the people of war and go up to Ai (verse 1). This time, the victory is certain because God has given the city into Joshua’s hand. The Lord commands them to take the spoil and cattle for themselves, unlike Jericho. He also instructs them to lay an ambush behind the city. Read the study notes
3 verses · Compare in parallel · Read all of Joshua 8