When the king of Ai saw the Israelites, he hurried out early in the morning with the men of the city to engage them in battle at an appointed place overlooking the Arabah. But he did not know that an ambush had been set up against him behind the city.
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
And it came to pass, when the king of Ai saw it,.... Not the ambush on the west side, but the host or army on the north side, or, however, some of his people gave him notice of it: that they hasted and rose up early; or made haste to rise out of their beds, on the alarm given of Israel's near approach: and the...
at a time appointed--either an hour concocted between the king and people of Ai and those of Beth-el, who were confederates in this enterprise, or perhaps they had fixed on the same time of day, as they had fought successfully against Israel on the former occasion, deeming it a lucky hour (Jdg 20:38).