And the LORD said to Joshua, “Do not fear and do not be dismayed. Take all the fighting men with you, and arise, go up to Ai. See, I have given into your hand the king of Ai, and his people, his city, and his land.
1. And the Lord said unto Joshua, etc It was of great consequence to Joshua, as well as the people, to inspire new courage, that they might prepare with confidence to assault the city of Ai, from which they had lately been repulsed with loss and greater disgrace. God, therefore, to inspire them with intrepidity on this expedition, promises that he will give them the city.
Israel were very happy in having such a commander as Joshua, but Joshua was more happy in having such a director as God himself; when any difficulty occurred, he needed not to call a council of war who had God so nigh unto him, not only to answer, but even to anticipate, his enquiries.
Commenting on Joshua 8:1-2
And the Lord said unto Joshua,.... Immediately after the execution of Achan, the fierceness of his anger being turned away: fear not, neither be thou dismayed; on account of the defeat of his troops he had sent to take Ai: take all the people of war with thee; all above twenty years of age, which, with the forty thousand of the tribes on the other...