And Joshua sent them out, and they went to the ambush, and stayed between Bethel and between Ai, on the west side of Ai. And Joshua lodged that night in the midst of the people.