Judges 2:23 in the King James Version
Therefore the LORD left those nations, without driving them out hastily; neither delivered he them into the hand of Joshua.
Context
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.