From there, Abram went on toward the hills east of Bethel. He set up his tent there. Bethel was to the west, and Ai was to the east. Abram built an altar there and called on the name of the Lord.
The whole army that was with him marched up to the city. They stopped in front of it. They set up camp north of Ai. There was a valley between them and the city.
The men took up their battle positions. All the men in the camp north of the city took up their positions. So did those who were supposed to hide west of the city. That night Joshua went into the valley.