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.
10. Joshua … numbered the people—that is, the detachment of liers-in-wait; he did this, to be furnished with clear evidence afterwards, that the work had been done without any loss of men, whereby the people's confidence in God would be strengthened and encouragement given them to prosecute the war of invasion with vigor.
he and the elders of Israel—the chief magistrates and rulers, whose presence and official authority were necessary to ensure that the cattle and spoil of the city might be equally divided between the combatants and the rest of the people (Nu 31:27)—a military rule in Israel, that would have been very liable to be infringed, if an excited soldiery, eager for booty, had been left to their own will.