Joshua 8:23-26

8:23 But they captured the king of Ai alive and brought him to Joshua.

8:24 When Israel had finished killing all the men of Ai who had chased them toward the desert (they all fell by the sword), all Israel returned to Ai and put the sword to it. 8:25 Twelve thousand men and women died that day, including all the men of Ai. 8:26 Joshua kept holding out his curved sword until Israel had annihilated all who lived in Ai.