Commentaries
8:3-22 Observe Joshua's conduct and prudence. Those that would maintain their spiritual conflicts must not love their ease. Probably he went into the valley alone, to pray to God for a blessing, and he did not seek in vain. He never drew back till the work was done. Those that have stretched out their hands against their spiritual enemies, must never draw them back.
14. 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 (Jud 20:38).
but he wist not that there were liers in ambush against him behind the city—It is evident that this king and his subjects were little experienced in war; otherwise they would have sent out scouts to reconnoitre the neighborhood; at all events, they would not have left their town wholly unprotected and open. Perhaps an ambuscade may have been a war stratagem hitherto unknown in that country, and among that people.