That night Joshua sent about 5,000 men to lie in ambush between Bethel and Ai, on the west side of the town.