Joshua 8:3; Joshua 8:12

3 So Joshua and the whole army moved out to attack Ai. He chose thirty thousand of his best fighting men and sent them out at night
12 Joshua had taken about five thousand men and set them in ambush between Bethel and Ai, to the west of the city.