Joshua 8:22

And the other issued out of the city against them; so they were in the midst of Israel, some on this side, and some on that side: and they smote them, so that they let none of them remain or escape.

This verse belongs to the account of Israel's renewed attack on Ai and its conquest of the city. That renewed attack came by God's command after Achan's sin had been judged and his sentence carried out. Israel marched to conquer the city from the plain at Gilgal. The verse describes the moment when Israel's forces closed in on Ai's army from both sides and struck them so that none remained or escaped, putting the enemy to flight. Israel soon took possession of the city, with God's power present with the people and the armies of Heaven fighting for them.