Shemot34:21

שֵׁשֶׁת יָמִים תַּעֲבֹד וּבַיּוֹם הַשְּׁבִיעִי תִּשְׁבֹּת בֶּחָרִישׁ וּבַקָּצִיר תִּשְׁבֹּת׃

Six days you shall work, and on the seventh day you shall rest. In plowing time and in harvest you shall rest.

Shemot 34:21

שֵׁשֶׁת יָמִים תַּעֲבֹד

Shemot / Exodus 34:21 · Remez

Shemot 34:21

שֵׁשֶׁת יָמִים תַּעֲבֹד וּבַיּוֹם הַשְּׁבִיעִי תִּשְׁבֹּת בֶּחָרִישׁ וּבַקָּצִיר תִּשְׁבֹּת׃

Six days you shall work, and on the seventh day you shall rest. In plowing time and in harvest you shall rest.

Remez רֶמֶז

Shabbat Among the Festivals

In the middle of a list of festivals stands Shabbat. Why exactly here?

Lekach Tov: Shabbat stands between the festival of matzot and Shavuot, a hint that festival days too are called "Shabbat": so it says of the count to Shavuot: "until the morrow after the seventh Sabbath." Rabbeinu Bachya: Shabbat stands next to the festival of matzot and the consecration of the firstborn, because all of them recall the creation of the world. And "in plowing time and in harvest" means: even in the most important season of work on the land.

How Midrash Lekach Tov and Rabbeinu Bahya explain it

Midrash Lekach Tov And on the seventh day you shall rest

The Torah placed Shabbat between the festival of matzot and the festival of Shavuot. This teaches that they too are called Shabbat, as it says: "Until the morrow after the seventh Sabbath" (Vayikra / Leviticus 23:16).

Rabbeinu Bahya Six days you shall work, and on the seventh day you shall rest

The Torah mentioned the commandment of Shabbat in the middle of the festivals and set it next to the festival of matzot and the consecration of the firstborn, because all of them recall the work of creation. And it says: "In plowing time and in harvest you shall rest," that is, even at the time of plowing and harvest, on which all a person's life in working the land depends, rest on Shabbat and do no work on it. So Ramban, of blessed memory, explained.

Takeaway

The counting of the omer (עֹמֶר): from the second day of Pesach one counts forty-nine days, seven weeks, and the fiftieth day is Shavuot. The Torah says "from the morrow after the Sabbath" (מִמָּחֳרַת הַשַּׁבָּת), and the sages read "Shabbat" here as the first day of the festival (Vayikra / Leviticus 23:15–16).
The festival of matzot is in verse 34:18, the consecration of the firstborn in verses 34:19–20, Shabbat in verse 34:21, Shavuot in verse 34:22. The sages read two commandments placed side by side in the Torah as a hint of a link between them.