Then Joshua and all Israel acted like they were beaten before them, and they fled in the direction of the wilderness.