Read Joshua 8:5 Using Other Translations
And I, and all the people that are with me, will approach unto the city: and it shall come to pass, when they come out against us, as at the first, that we will flee before them,
And I and all the people who are with me will approach the city. And when they come out against us just as before, we shall flee before them.
When our main army attacks, the men of Ai will come out to fight as they did before, and we will run away from them.