So Joshua sent them away, and they went to the place of ambush and remained between Bethel and Ai, on the west side of Ai; but Joshua spent that night among the people.
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.
Now Joshua sent men from Jericho to Ai, which is near Beth-aven, east of Bethel, and said to them, “Go up and spy out the land.” So the men went up and spied out Ai.
Then it will be that when you have seized the city, that you shall set the city on fire. You shall do it according to the word of Yahweh. See, I have commanded you.”