Verse 38

And the Lord said to Joshua, Fear not, neither be thou dismayed, behold I have given into thy hand Ai, her king and her people, and thou shalt do unto them as thou didst to Jericho and her king, only the spoil thereof and the cattle thereof shall you take for a prey for yourselves; lay an ambush for the city behind it.