Ezekiel 20:10-26 NKJV
“Therefore I made them go out of the land of Egypt and brought them into the wilderness. And I gave them My statutes and showed them My judgments, ‘which, if a man does, he shall live by them.’ Moreover I also gave them My Sabbaths, to be a sign between them and Me, that they might know that I am the LORD who sanctifies them. Yet the house of Israel rebelled against Me in the wilderness; they did not walk in My statutes; they despised My judgments, ‘which, if a man does, he shall live by them’; and they greatly defiled My Sabbaths. Then I said I would pour out My fury on them in the wilderness, to consume them. But I acted for My name’s sake, that it should not be profaned before the Gentiles, in whose sight I had brought them out. So I also raised My hand in an oath to them in the wilderness, that I would not bring them into the land which I had given them, ‘flowing with milk and honey,’ the glory of all lands, because they despised My judgments and did not walk in My statutes, but profaned My Sabbaths; for their heart went after their idols. Nevertheless My eye spared them from destruction. I did not make an end of them in the wilderness.
“But I said to their children in the wilderness, ‘Do not walk in the statutes of your fathers, nor observe their judgments, nor defile yourselves with their idols. I am the LORD your God: Walk in My statutes, keep My judgments, and do them; hallow My Sabbaths, and they will be a sign between Me and you, that you may know that I am the LORD your God.’
“Notwithstanding, the children rebelled against Me; they did not walk in My statutes, and were not careful to observe My judgments, ‘which, if a man does, he shall live by them’; but they profaned My Sabbaths. Then I said I would pour out My fury on them and fulfill My anger against them in the wilderness. Nevertheless I withdrew My hand and acted for My name’s sake, that it should not be profaned in the sight of the Gentiles, in whose sight I had brought them out. Also I raised My hand in an oath to those in the wilderness, that I would scatter them among the Gentiles and disperse them throughout the countries, because they had not executed My judgments, but had despised My statutes, profaned My Sabbaths, and their eyes were fixed on their fathers’ idols.
“Therefore I also gave them up to statutes that were not good, and judgments by which they could not live; and I pronounced them unclean because of their ritual gifts, in that they caused all their firstborn to pass through the fire, that I might make them desolate and that they might know that I am the LORD.” ’
NKJV: New King James Version