New King James Version (NKJV)
Judges 2
18 And when the Lord raised up judges for them, the Lord was with the judge and delivered them out of the hand of their enemies all the days of the judge; for the Lord was moved to pity by their groaning because of those who oppressed them and harassed them.
19 And it came to pass, when the judge was dead, that they reverted and behaved more corruptly than their fathers, by following other gods, to serve them and bow down to them. They did not cease from their own doings nor from their stubborn way.
20 Then the anger of the Lord was hot against Israel; and He said, "Because this nation has transgressed My covenant which I commanded their fathers, and has not heeded My voice,
21 I also will no longer drive out before them any of the nations which Joshua left when he died,
22 so that through them I may test Israel, whether they will keep the ways of the Lord, to walk in them as their fathers kept them, or not."
23 Therefore the Lord left those nations, without driving them out immediately; nor did He deliver them into the hand of Joshua.
Judges 3
1 Now these are the nations which the Lord left, that He might test Israel by them, that is, all who had not known any of the wars in Canaan
2 (this was only so that the generations of the children of Israel might be taught to know war, at least those who had not formerly known it),
3 namely, five lords of the Philistines, all the Canaanites, the Sidonians, and the Hivites who dwelt in Mount Lebanon, from Mount Baal Hermon to the entrance of Hamath.
4 And they were left, that He might test Israel by them, to know whether they would obey the commandments of the Lord, which He had commanded their fathers by the hand of Moses.
5 Thus the children of Israel dwelt among the Canaanites, the Hittites, the Amorites, the Perizzites, the Hivites, and the Jebusites.