Then he moved on 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 on the name of the Lord [in worship through prayer, praise, and thanksgiving].
Then all the fighting men who were with him went up and advanced and arrived in front of the city, and camped on the north side of Ai. Now there was a ravine between them and Ai.
So they stationed the people, all the army—the main encampment that was north of the city, and their rear guard on the west side of the city—and Joshua spent that night in the valley.