שְׁמֹ֣ר וְשָׁמַעְתָּ֗ אֵ֚ת כָּל־הַדְּבָרִ֣ים הָאֵ֔לֶּה אֲשֶׁ֥ר אָנֹכִ֖י מְצַוֶּ֑ךָּ לְמַעַן֩ יִיטַ֨ב לְךָ֜ וּלְבָנֶ֤יךָ אַחֲרֶ֙יךָ֙ עַד־עוֹלָ֔ם כִּ֤י תַעֲשֶׂה֙ הַטּ֣וֹב וְהַיָּשָׁ֔ר בְּעֵינֵ֖י יְהוָ֥ה אֱלֹהֶֽיךָ׃ (ס)
היט און זאָלסט געהאָרכן אַלע די דאָזיקע װערטער װאָס איך באַפֿעל דיר, כּדי עס זאָל גוט זײַן דיר און דײַנע קינדער נאָך דיר ביז אײביק, אַז דו װעסט טאָן װאָס איז גוט און רעכטפֿאַרטיק אין די אױגן פֿון ה׳ דײַן גאָט.
Rashi
שמר KEEP [AND HEAR (understand) ALL THESE WORDS WHICH I COMMAND THEE] — This (the word שמר) implies the studying of the oral law — that you must keep it within you that it should not be forgotten, just as it is said, (Proverbs 22:18) “[And apply thy heart unto my knowledge] for it is a pleasant thing if thou keep (תשמרם) them within thee”, and only if thou learnest is it possible that thou wilt understand and fulfil the commands, but one who is not amongst those who study (lit., who is not included in learning) cannot be amongst those who act correctly (cf. Sifrei Devarim 79:3; see also Rashi on Deuteronomy 4:6). (The translation is: keep, i.e. study and retain your learning in mind: ושמעת, and then thou wilt understand how to observe the commands).
Ramban
OBSERVE AND HEAR ALL THOSE WORDS WHICH I COMMAND THEE. He [Moses] did not mention here the statutes and ordinances, nor His testimonies and His commandments, but said all those words in order to include in this observance the good and the right, as I have explained in the section of Va’ethchanan.92Above, 6:18.
Tur HaArokh
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערSiftei Chakhamim
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערOr HaChaim
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערRav Hirsch
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערRashi
את כל הדברים [KEEP …] ALL WORDS [WHICH I COMMAND THEE] — This implies that a light precept should be as dear to you as a grave precept (Sifrei Devarim 79:4).