He left from there to the mountain on the east of Beit-El, and pitched his tent, having Beit-El on the west, and `Ai on the east. There he built an altar to the LORD and called on the name of the LORD.
The lot came out for the children of Yosef from the Yarden at Yericho, at the waters of Yericho on the east, even the wilderness, going up from Yericho through the hill country to Beit-El;
and all the villages that were round about these cities to Ba`alat-Be'er, Ramah of the South. This is the inheritance of the tribe of the children of Shim`on according to their families.
Yehoshua sent men from Yericho to `Ai, which is beside Beit-Aven, on the east side of Beit-El, and spoke to them, saying, Go up and spy out the land. The men went up and spied out `Ai.
Yehoshua sent them forth; and they went to set up the ambush, and stayed between Beit-El and `Ai, on the west side of `Ai: but Yehoshua lodged that night among the people.