Judges 2:22 in the King James Version
That through them I may prove Israel, whether they will keep the way of the LORD to walk therein, as their fathers did keep it, or not.
Context
21 I also will no longer drive out any of the nations that Joshua left when he died from before them;
22 that by them I may test Israel, to see if they will keep the LORD’s way to walk therein, as their fathers kept it, or not.”
23 So the LORD left those nations, without driving them out hastily. He didn’t deliver them into Joshua’s hand.