So the entire population of Ai, including men and women, was wiped out that day—12,000 in all.
When the Israelite army finished chasing and killing all the men of Ai in the open fields, they went back and finished off everyone inside.