When Israel had finished killing all the men of Ai who had pursued them into the field and wilderness, and when every last one of them had fallen by the sword, all the Israelites returned to Ai and put it to the sword as well.
Jewish Publication Society of America Version (JPS1917) - Joshua 8:24 >And it came to pass, when Israel had made an end of slaying all the inhabitants of Ai in the field, even in the wilderness wherein they pursued them, and they were all fallen by the edge of the sword, until they were consumed, that all Israel returned unto Ai, and smote it with the edge of the sword.