So Joshua sent them out. They went to the place of ambush and took up a position between Bethel and Ai, westward of Ai, and Joshua spent the night among the people.
From there he continued on to a mountain to the east of Bethel and pitched his tent, having Bethel on the west and Ai on the east. There he built an altar to the Lord and called on the name of the Lord.
Joshua sent men from Jericho to Ai (which is near Beth-aven, east of Bethel) and said to them, “Go up and spy on the land.” So the men went up and spied on Ai.