Joshua 8:11-13
8:11 All the troops that were with him marched up and drew near the city. They camped north of Ai on the other side of the valley.
8:12 He took five thousand men and set an ambush west of the city between Bethel and Ai.
8:13 The army was in position – the main army north of the city and the rear guard west of the city. That night Joshua went into the middle of the valley.