Devarim / Deuteronomy 5:12 · Sod
שָׁמוֹר אֶת־יוֹם הַשַׁבָּת לְקַדְּשׁוֹ כַּאֲשֶׁר צִוְּךָ יְהוָה אֱלֹהֶיךָ
Keep the Sabbath day, to make it holy, as the Eternal your Almighty commanded you.
Sod סוֹד
"Keep", even in exile
In "Remember" the reason for Shabbat is creation, and in "Keep" it is the Exodus from Egypt. A Hasidic teacher explains why one commandment has two different reasons.
Sefat Emet: to "keep" is to be ready to receive the holiness of Shabbat, and this is the power of the Exodus: the Eternal brought us out so that we would become a vessel for Shabbat. "Remember" lacks this reason: then the people were fully free and understood the essence of Shabbat, rest after six days of creation. But "keep" is forever, even in exile, when we are far from rest: we must keep it and long for freedom.
How Sefat Emet explain it
Sefat Emet Keep the Sabbath day
On the verse "Keep the Sabbath day". Keeping is being ready to receive the holiness of Shabbat, and this is by the power of the Exodus from Egypt: "And remember that you were a slave". The Holy One, blessed is He, brought us out to become a vessel ready to receive the holiness of Shabbat. That is why this reason is not written in the passage of "Remember": then they were in complete freedom, ready for Shabbat, and understood the essence of Shabbat: "For in six days He made" and so on, "and rested on the seventh day". But the level of "keep" is forever, even in exile, when we are far from the rest of Shabbat, we must keep and long for freedom through remembering the Exodus from Egypt, to come to the level of Shabbat. And the sages said: whoever is bound to "keep" is bound to "remember".
Takeaway
The reason in Shemot: "For in six days the Eternal made the heavens and the earth", and further: "and rested on the seventh day" (Shemot / Exodus 20:11). In Devarim: "And remember that you were a slave in the land of Egypt" (Devarim / Deuteronomy 5:15).
The word "keep" (שָׁמַר) also means "wait": "But his father kept (שָׁמַר) the matter in mind" (Bereshit / Genesis 37:11), and Rashi there: he waited for it to come true. So Sefat Emet reads "keep": to wait and long.
Sefat Emet ends with the words of the Talmud (Berakhot 20b) that explain the law for women: "keep" leads to "remember".