12 Then he took about 5,000 men and set them in ambush between Beit-El and 'Ai, to the west of 'Ai.