I therefore cast them out of the land of Egypt, and led them out into the desert. And I gave them my precepts, and showed them my judgments, which a man should do and live in them. Moreover I also gave them my sabbaths, that it might be a sign between me and them, and that they might know that I am the Lord who sanctifies them. And the house of Israel provoked me in the desert: they did not walk in my precepts, and they cast away my judgments, which, if a man does them, he shall live in them, and they violated my sabbaths exceedingly. I said therefore that I would pour out my fury upon them in... the desert and consume them. And I acted for my name's sake, that it might not be profaned before the nations from which I cast them out in their sight. These things are said to those who were led out of Egypt into the desert, so that, freed from the vices of the Egyptians, they might more easily fulfill the precepts of God in the wilderness and do his judgments and keep the sabbaths, which were given as a sign between the one who gave them and those to whom they were given, as Scripture says: The Lord spoke to Moses, saying: Command the children of Israel and you shall say to them: See that you keep my sabbaths, for it is a sign between me and you throughout your generations, that you may know that I am the Lord who sanctifies you; and keep the sabbath, for it is holy to you: whoever violates it shall surely die; everyone who does work on it, that soul shall be put to death from the midst of its people. So the sabbath and circumcision were given as a sign of the true sabbath and the true circumcision: that we may know that we must rest from earthly works in the perfect and true sabbath, and that we should circumcise not the foreskin but the heart. Hence, working for six days, we rest on the seventh day, so that day and night we may do nothing else than recognize that all that we live is owed to the Lord, and, as the week comes round again, consecrate ourselves wholly to his name, so that through the sanctification of the day we may remember the Lord who sanctifies us.
Source: Commentary on Ezekiel