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