Now he had taken about five thousand men, and set them in ambush between Bethel and Ai, on the west of the city.