12 And I gave them my Sabbath days of rest as a sign between them and me. It was to remind them that I am the Lord, who had set them apart to be holy. 13 "But the people of Israel rebelled against me, and they refused to obey my decrees there in the wilderness. They wouldn't obey my regulations even though obedience would have given them life. They also violated my Sabbath days. So I threatened to pour out my fury on them, and I made plans to utterly consume them in the wilderness.

Matthew Henry's Commentary on Ezekiel 20:12-13

Commentary on Ezekiel 20:10-26

(Read Ezekiel 20:10-26)

The history of Israel in the wilderness is referred to in the new Testament as well as in the Old, for warning. God did great things for them. He gave them the law, and revived the ancient keeping of the sabbath day. Sabbaths are privileges; they are signs of our being his people. If we do the duty of the day, we shall find, to our comfort, it is the Lord that makes us holy, that is, truly happy, here; and prepares us to be happy, that is, perfectly holy, hereafter. The Israelites rebelled, and were left to the judgments they brought upon themselves. God sometimes makes sin to be its own punishment, yet he is not the Author of sin: there needs no more to make men miserable, than to give them up to their own evil desires and passions.