Shemot / Exodus 16:29 · Drash
רְאוּ כִּי־יְהוָה נָתַן לָכֶם הַשַּׁבָּת עַל־כֵּן הוּא נֹתֵן לָכֶם בַּיּוֹם הַשִּׁשִּׁי לֶחֶם יוֹמָיִם שְׁבוּ אִישׁ תַּחְתָּיו אַל־יֵצֵא אִישׁ מִמְּקֹמוֹ בַּיּוֹם הַשְּׁבִיעִי׃
See, the Eternal has given you the Sabbath, therefore He gives you on the sixth day bread for two days. Remain each of you in his place, let no one go out of his place on the seventh day."
Drash דְּרָשׁ
He rested, and they rested
Children learn less from words than from watching adults. The midrash says Israel learned Shabbat the same way: they saw the Eternal rest, and began to rest.
Pirkei DeRabbi Eliezer: the Holy One, blessed is He, Himself kept and sanctified Shabbat. For forty years the manna fell six days, and on Shabbat it did not. So that no one would think He lacked strength to give every day, He gave on the sixth day bread for two days. When Israel saw that He rested, they rested too.
How Pirkei DeRabbi Eliezer explain it
Pirkei DeRabbi Eliezer See, the Eternal has given you the Sabbath
The Holy One, blessed is He, kept and sanctified Shabbat, and Israel are obliged only to keep and sanctify Shabbat. Know that this is so. Come and see: when He gave them the manna for forty years, He gave it on the six working days, and on Shabbat He did not give it.
Perhaps you will say He had no strength to give every day? No, it is because He rested. Therefore He gave them bread for two days on the sixth day, as it says: "See, the Eternal has given you the Sabbath, therefore He gives you on the sixth day bread for two days" (Shemot / Exodus 16:29). When Israel saw that He rested before them, they too rested, as it says: "And the people rested on the seventh day" (Shemot / Exodus 16:30).
Takeaway
"Keep and sanctify": two sides of Shabbat in the Torah, "keep (שָׁמוֹר) the Sabbath day" (Devarim / Deuteronomy 5:12) and "remember (זָכוֹר) the Sabbath day to sanctify it" (Shemot / Exodus 20:8).
The midrash teaches: Israel rest on Shabbat in imitation of the Eternal, who rested on the seventh day of creation (Bereshit / Genesis 2:2).