Joshua 8:12 (KJV)

And he took about five thousand men, and set them to lie in ambush between Beth-el and Ai, on the west side of the city.