Then he proceeded from there to the mountain on the east of Bethel, and pitched his tent with Bethel on the west and Ai on the east; and there he built an altar to the Lord and called upon the name of the Lord.
Then all the people of war who were with him went up and approached, and arrived in front of the city; and they camped on the north side of Ai. And there was a valley between him and Ai.
So they stationed 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 spent that night in the midst of the valley.