So they stationed the people, the main army that was to the north of the city, and its rear guard to the west of the city. Then Joshua walked that night in the midst of the valley.
So it came to pass when the king of Ai saw this, 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 facing the Arabah. But he did not know that there was an ambush against him behind the city.