12 Then Joshua chose about five thousand men and set them in ambush in the area west of the city between Bethel and Ai.