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.
And the ambush arose quickly out of their place,.... As soon as the sentinels set in proper places observed the signal, and gave them notice of it, which was the stretching out of the spear, as appears by what follows:
and they ran as soon as he had stretched out his hand; and the spear in his hand; from whence it is plain, that though the Lord is said to bid Joshua do this now, he had orders from him for it before and the ambush must have been made acquainted with it before they were sent away; and this was only a renewal of the order from the Lord, and which pointed out the proper time, the very crisis, when it should be stretched out:
and they entered into the city; without any difficulty, the gates being open:
and took it; took possession of it, and the strong holds in it:
and hasted and set the city on fire; that is, they made haste to set some houses on fire as the signal to the army of Israel to return.