Judges 2:1-5, 11-23
Now the angel of the LORD went up from Gilgal to Bochim. And he said, "I brought you up from Egypt, and brought you into the land which I swore to give to your fathers. I said, 'I will never break my covenant with you, and you shall make no covenant with the inhabitants of this land; you shall break down their altars.' But you have not obeyed my command. What is this you have done? So now I say, I will not drive them out before you; but they shall become adversaries to you, and their gods shall be a snare to you."
When the angel of the LORD spoke these words to all the people of Israel, the people lifted up their voices and wept. And they called the name of that place Bochim; and they sacrificed there to the LORD.
And the people of Israel did what was evil in the sight of the LORD and served the Ba'als; and they forsook the LORD, the God of their fathers, who had brought them out of the land of Egypt; they went after other gods, from among the gods of the peoples who were round about them, and bowed down to them; and they provoked the LORD to anger. They forsook the LORD, and served the Ba'als and the Ash'taroth.
So the anger of the LORD was kindled against Israel, and he gave them over to plunderers, who plundered them; and he sold them into the power of their enemies round about, so that they could no longer withstand their enemies. Whenever they marched out, the hand of the LORD was against them for evil, as the LORD had warned, and as the LORD had sworn to them; and they were in sore straits.
Then the LORD raised up judges, who saved them out of the power of those who plundered them. And yet they did not listen to their judges; for they played the harlot after other gods and bowed down to them; they soon turned aside from the way in which their fathers had walked, who had obeyed the commandments of the LORD, and they did not do so.
Whenever the LORD raised up judges for them, the LORD was with the judge, and he saved them from 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 afflicted and oppressed them.
But whenever the judge died, they turned back and behaved worse than their fathers, going after other gods, serving them and bowing down to them; they did not drop any of their practices or their stubborn ways.
So the anger of the LORD was kindled against Israel; and he said, "Because this people have transgressed my covenant which I commanded their fathers, and have not obeyed my voice, I will not henceforth drive out before them any of the nations that Joshua left when he died, that by them I may test Israel, whether they will take care to walk in the way of the LORD as their fathers did, or not."
So the LORD left those nations, not driving them out at once, and he did not give them into the power of Joshua.