Joshua 8: 9 therefore sent them out; and they went to lie in ambush, and stayed between Bethel and Ai, on the west side of Ai; but Joshua lodged that night among the people.
10 Then Joshua rose up early in the morning and mustered the people, and went up, he and the elders of Israel, before the people to Ai.
11 And all the people of war who were with him went up and drew near; and they came before the city and camped on the north side of Ai. Now a valley lay between them and Ai.
12 So he took about five thousand men and set them in ambush between Bethel and Ai, on the west side of the city.
13 And when they had set the people, all the army that was on the north of the city, and its rear guard on the west of the city, Joshua went that night into the midst of the valley.