Thus the people took up their stations, with the main body north of the city and the ambush west of it, and Joshua waited overnight in the valley.