and then you will rise up from the ambush and take possession of the city, for Yahweh your God will give it into your hand.
In context
5I and all the people with me will approach the city, and when they come out against us as before, we will flee before them. 6They will come out after us until we have drawn them away from the city, for they will say, ‘They are fleeing before us, just as before.’ So we will flee before them, 7and then you will rise up from the ambush and take possession of the city, for Yahweh your God will give it into your hand. 8As soon as you have captured the city, set it on fire. Do this in obedience to the word of Yahweh. See — I have commanded you.” 9Joshua sent them out, and they went to the place of ambush and waited between Bethel and Ai, west of Ai. But Joshua spent that night among the people.