Then he proceeded from there to the mountain on the east of Bethel, and he pitched his tent with Bethel on the west and Ai on the east; and there he built an altar to Yahweh and called upon the name of Yahweh.
Then all the people of war who were with him went up and drew near and arrived in front of the city and camped on the north side of Ai. Now there was a valley between him and Ai.
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.