Joshua 8:2
And thou shalt do to Ai and her king as thou didst unto Jericho and her king: only the spoil thereof, and the cattle thereof, shall ye take for a prey unto yourselves: lay thee an ambush for the city behind it. And thou shalt do to Ai and her king as thou didst unto Jericho and her king: only the spoil thereof, and the cattle thereof, shall ye take for a prey unto yourselves: lay thee an ambush for the city behind it.
Joshua 8:2 belongs to the account of Israel's march from Gilgal to conquer Ai after the overthrow of Jericho. Gilgal was Israel's first encampment in the promised land, where twelve stones were set up to commemorate the crossing of the Jordan. It was also the place where the manna ended, circumcision was renewed, the first Passover in the land was kept, and the Captain of the Lord's host appeared.
After Achan was punished and his sentence was carried out, God's wrath was turned away from Israel. Israel was then commanded to advance against Ai again. For this renewed attack Joshua was to marshal all the men of war. With God's power the armies of heaven fought for Israel, so the people soon took the city and put their enemies to flight. Israel's only hope in this second attack was obedience to God.