Joshua had chosen about 5,000 soldiers. He had ordered them to hide in a place west of Ai. It was between Bethel and Ai.