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.”

Judges 3:1

3:1 These were the nations the Lord permitted to remain so he could use them to test Israel – he wanted to test all those who had not experienced battle against the Canaanites.

Judges 3:4

3:4 They were left to test Israel, so the Lord would know if his people would obey the commands he gave their ancestors through Moses.