Read Joshua 8:9 Using Other Translations
Joshua therefore sent them forth: and they went to lie in ambush, and abode between Bethel and Ai, on the west side of Ai: but Joshua lodged that night among the people.
So Joshua sent them out. And they went to the place of ambush and lay between Bethel and Ai, to the west of Ai, but Joshua spent that night among the people.
So they left and went to the place of ambush between Bethel and the west side of Ai. But Joshua remained among the people in the camp that night.