Joshua sent them out, and they went to lie in ambush between Bethel and the west side of Ai. But that night Joshua stayed with the people in the camp.