Devarim5:12

שָׁמוֹר אֶת־יוֹם הַשַׁבָּת לְקַדְּשׁוֹ כַּאֲשֶׁר צִוְּךָ יְהוָה אֱלֹהֶיךָ

Keep the Sabbath day, to make it holy, as the Eternal your Almighty commanded you.

Devarim 5:12

שָׁמוֹר אֶת־יוֹם הַשַׁבָּת

Devarim / Deuteronomy 5:12 · Remez

Devarim 5:12

שָׁמוֹר אֶת־יוֹם הַשַׁבָּת לְקַדְּשׁוֹ כַּאֲשֶׁר צִוְּךָ יְהוָה אֱלֹהֶיךָ

Keep the Sabbath day, to make it holy, as the Eternal your Almighty commanded you.

Remez רֶמֶז

The fire goes out on Shabbat

The sages read the first and last letters of words. In the opening words of the Shabbat commandment and in the letters of the whole Ten Utterances (עֲשֶׂרֶת הַדְּבָרִים) they find hidden hints.

Kitzur Baal HaTurim: the first letters of "keep the Sabbath day" (שָׁמוֹר אֶת יוֹם הַשַּׁבָּת) spell "desolation" (שְׁאִיָּה), and the last letters of the first three words spell "broom" (רֹתֶם): even those punished in desolation and on coals of broom rest on Shabbat. Lekach Tov: the second Ten Utterances contain every letter of the alphabet, and the first lack the letter tet (ט). Without it, says the midrash, Israel still had hope after the sin of the golden calf.

How Kitzur Ba'al HaTurim and Midrash Lekach Tov explain it

Kitzur Ba'al HaTurim Keep the Sabbath day

The first letters are שאיה ("desolation"), and the last are רתם ("broom"), to tell you: those judged in desolation and on coals of broom rest on Shabbat.

Midrash Lekach Tov Keep the Sabbath day

"Keep" and "remember" were said in one utterance. Whoever is bound to "keep" is bound to "remember". These women, since they are bound to "keep", are bound to "remember". From here, that women are obliged in the sanctification of the day. The whole alphabet is written in the second Ten Utterances. Tet (ט) is not written in the first tablets: had tet been written in them, Israel would have had no repair after the deed of the calf. That is, the marriage contract (כְּתֻבָּה) had not yet been drawn up properly, and she is not judged as a married woman but as an unmarried one. The second tablets came, and in them are two tets: "and an outstretched arm" (וּבִזְרוֹעַ נְטוּיָה) and "that it may go well with you" (וּלְמַעַן יִיטַב לָךְ), to complete both the first and the last. Four vavs (ו): "and do not commit adultery, and do not murder, and do not steal, and do not bear witness", corresponding to the twenty-four books that Israel would have. Another explanation: why "and not, and not"? Because when they were said from the mouth of the Power, they were said with pauses between them, in ten separate parts, so there they are said without vav. But Moshe said them together, as one reads from a book, so it says: "and do not murder, and do not commit adultery, and do not steal". And the order is by what is dearest: first "do not murder", a life, "do not commit adultery", his wife, "do not steal", his property.

Takeaway

שָׁמוֹר אֶת יוֹם הַשַּׁבָּת: first letters ש א י ה, last letters of the first three words ר ת ם. "Desolation" (שְׁאִיָּה) is from Yeshayahu / Isaiah 24:12, "coals of broom" (גַּחֲלֵי רְתָמִים) from Tehillim / Psalms 120:4.
The sages say that even those punished in Gehinnom (גֵּיהִנֹּם), the place of cleansing after death, rest on Shabbat.
Checked against the text: the Ten Utterances of Shemot have no letter ט at all, those of Devarim have two (נְטוּיָה, יִיטַב), and Devarim has all 22 letters. The letter ט is the first letter of the word "good" (טוֹב).
Vav has the value 6 in gematria, four vavs are 24, like the twenty-four books of the Tanakh.