So Joshua arose, and all the people of war, to go up against Ai: and Joshua chose out thirty thousand mighty men of valor, and sent them away by night.
And he commanded them, saying, Behold, you shall lie in wait against the city, even behind the city: go not very far from the city, but be you all ready:
And he sent messengers unto Abimelech secretly, saying, Behold, Gaal the son of Ebed and his brethren are come to Shechem; and, behold, they fortify the city against you.
And it shall be, that in the morning, as soon as the sun is up, you shall rise early, and set upon the city: and, behold, when he and the people that are with him come out against you, then may you do to them as you shall find occasion.