Judges 2:20-Judges 3:4 - The Lord Allows The Nations To Stay In Order To Test His People
20 And the anger of LORD was kindled against Israel, and he said, Because this nation has transgressed my covenant which I commanded their fathers, and has not hearkened to my voice, 21 I also will not henceforth drive out any from before them of the nations that Joshua left when he died, 22 that by them I may prove Israel, whether they will keep the way of LORD to walk in it, as their fathers kept it, or not. 23 So LORD left those nations, without driving them out quickly. Neither did he deliver them into the hand of Joshua.
1 Now these are the nations which LORD left to prove Israel by them, (even as many [of Israel] as had not known all the wars of Canaan, 2 only that the generations of the sons of Israel might know, to teach them war, at least to such as formerly knew nothing of that): 3 [namely], the five lords of the Philistines, and all the Canaanites, and the Sidonians, and the Hivites that dwelt in mount Lebanon, from mount Baal-hermon to the entrance of Hamath. 4 And they were [left], to prove Israel by them, to know whether they would hearken to the commandments of LORD, which he commanded their fathers by Moses.