10 And the children of Israel cried out to the LORD, saying, "We have sinned against You, because we have both forsaken our God and served the Baals!"
11 So the LORD said to the children of Israel, "Did I not deliver you from the Egyptians and from the Amorites and from the people of Ammon and from the Philistines?
12 Also the Sidonians and Amalekites and Maonites oppressed you; and you cried out to Me, and I delivered you from their hand.
13 Yet you have forsaken Me and served other gods. Therefore I will deliver you no more.
14 Go and cry out to the gods which you have chosen; let them deliver you in your time of distress."
15 And the children of Israel said to the LORD, "We have sinned! Do to us whatever seems best to You; only deliver us this day, we pray."
16 So they put away the foreign gods from among them and served the LORD. And His soul could no longer endure the misery of Israel.
Judges chapter 10, verses 10 to 16