Ezekiel 20:10-17

ISV(i) 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.
15 “Moreover, I solemnly swore to them in the wilderness that I wouldn’t bring them to the land that I had given them—a land flowing with milk and honey, the most beautiful of all lands— 16 because they kept on rejecting my ordinances. They didn’t live life consistent with my statutes, they profaned my Sabbaths, and their hearts followed their idols. 17 Even then, I looked on them with compassion and didn’t completely destroy them in the wilderness.