Joshua
Joshua 8:22BSB·traditional attribution

Meanwhile, those in the ambush came out of the city against them, and the men of Ai were trapped between the Israelite forces on both sides. So Israel struck them down until no survivor or fugitive remained.

Matthew Henry Presbyterian @wholebiblehenry

We have here an account of the taking of Ai by stratagem. The stratagem here used, we are sure, was lawful and good; God himself appointed it, and we have no reason to think but that the like is lawful and good in other wars.

Commenting on Joshua 8:3-22

John Gill Reformed Baptist @doctorgill

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...

Geneva Bible Notes Reformed @genevanotes

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. (i) Who came out of the ambush.