Joshua 8:22

22 and these have come out from the city to meet them, and they are in the midst of Israel, some on this side, and some on that, and they smite them till he hath not left to them a remnant and escaped one;

Joshua 8:22 Meaning and Commentary

Joshua 8:22

And the other issued out of the city against them
That is, the ambush, or at least a part of them:

so that they were in the midst of Israel, some on this side, and some
on that side;
or, as we commonly say, they were between two fires, the ambush on one side, the army of Israel on the other:

and they smote them, so that they let none of them remain or escape;
not one was saved alive, excepting their king, as in ( Joshua 8:23 ) ; no quarter was given them, nor any suffered to make their escape.

Joshua 8:22 In-Context

20 And the men of Ai look behind them, and see, and lo, the smoke of the city hath gone up unto the heavens, and there hath not been in them power to flee hither and thither -- and the people who are fleeing to the wilderness have turned against the pursuer, --
21 and Joshua and all Israel have seen that the ambush hath captured the city, and that the smoke of the city hath gone up, and they turn back and smite the men of Ai;
22 and these have come out from the city to meet them, and they are in the midst of Israel, some on this side, and some on that, and they smite them till he hath not left to them a remnant and escaped one;
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;
Young's Literal Translation is in the public domain.