Joshua 8:2-3

8:2 Do to Ai and its king what you did to Jericho and its king, except you may plunder its goods and cattle. Set an ambush behind the city!”

8:3 Joshua and the whole army marched against Ai. Joshua selected thirty thousand brave warriors and sent them out at night.