12 Now Joshua had taken about 5,000 men and set them in ambush between Bethel and Ai, to the west of the city.