Ezekiel 20:7-9

ISV(i) 7 Then I told them, ‘Each of you are to abandon your detestable practices. You are not to defile yourselves with Egypt’s idols. I am the LORD your God.’”’”
8 A Brief History of Israel’s Rebellion“But they rebelled against me and weren’t willing to obey me. None of them abandoned their detestable practices or their Egyptian idols. So I said, ‘I’ll pour out my anger on them, extending my fury in the middle of the land of Egypt.’ 9 I did this so my reputation might not be tarnished among the nations where they were living, among whom I made myself known in their presence when I brought them out of the land of Egypt.