“For My people are foolish, they have not known Me. They are foolish children, and they have no understanding. They are wise to do evil, but to do good they have no knowledge.”
So Joshua sent them out. They went to the place of ambush and took up a position between Bethel and Ai, westward of Ai, and Joshua spent the night among the people.