So they set the people, all the army that was on the north side of the city, and its rear guard on the west side of the city, and Joshua went that night into the midst of the valley.
Now it happened that when the king of Ai saw it, the men of the city hurried and rose up early and went out to meet Israel in battle, he and all his people at the appointed place before the desert plain. But he did not know that there was an ambush against him behind the city.
Then it will be that when you have seized the city, that you shall set the city on fire. You shall do it according to the word of Yahweh. See, I have commanded you.”