17 Not a man remained in Ai or Bethel who did not go after Israel. They left the city open and went in pursuit of Israel.

Read Joshua 8:17 Using Other Translations

And there was not a man left in Ai or Bethel, that went not out after Israel: and they left the city open, and pursued after Israel.
Not a man was left in Ai or Bethel who did not go out after Israel. They left the city open and pursued Israel.
There was not a man left in Ai or Bethel who did not chase after the Israelites, and the town was left wide open.