Ezekiel 20:6-14

ISV(i) 6 That day I promised to bring them out of the land of Egypt to the land that I had explored for them—a land flowing with milk and honey. It’s the most beautiful of all lands. 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. 10 I brought them out of the land of Egypt to bring them to the wilderness 11 where I gave them my statutes and revealed my ordinances to them, which if a person observes, he’ll live by them. 12 Also, I instituted my Sabbath for them as a sign between me and them, so they would know that I am the LORD, who has set them apart.”
13 Israel Rebels in the Wilderness“But the house of Israel rebelled against me in the wilderness. They didn’t live by my statutes. They despised my ordinances, which if a person observes, he’ll live by them. They greatly profaned my Sabbaths. So I said I would pour out my anger on them and bring them to an end in the wilderness. 14 I did this so my reputation wouldn’t be tarnished among the nations in whose presence I had brought them out.