Judges 2:12

2:12 They abandoned the Lord God of their ancestors who brought them out of the land of Egypt. They followed other gods – the gods of the nations who lived around them. They worshiped them and made the Lord angry.

Judges 2:22

2:22 Joshua left those nations to test Israel. I wanted to see whether or not the people would carefully walk in the path marked out by the Lord, as their ancestors were careful to do.”