Devarim12:28

שְׁמֹר וְשָׁמַעְתָּ אֵת כָּל־הַדְּבָרִים הָאֵלֶּה אֲשֶׁר אָנֹכִי מְצַוֶּךָּ לְמַעַן יִיטַב לְךָ וּלְבָנֶיךָ אַחֲרֶיךָ עַד־עוֹלָם כִּי תַעֲשֶׂה הַטּוֹב וְהַיָּשָׁר בְּעֵינֵי יְהוָה אֱלֹהֶיךָ׃

Keep and listen to all these words that I command you, so that it may go well with you and with your children after you for ever, when you do what is good and right in the eyes of the Eternal your Almighty.

Devarim 12:28

שְׁמֹר וְשָׁמַעְתָּ אֵת

Devarim / Deuteronomy 12:28 · Remez

Devarim 12:28

שְׁמֹר וְשָׁמַעְתָּ אֵת כָּל־הַדְּבָרִים הָאֵלֶּה אֲשֶׁר אָנֹכִי מְצַוֶּךָּ לְמַעַן יִיטַב לְךָ וּלְבָנֶיךָ אַחֲרֶיךָ עַד־עוֹלָם כִּי תַעֲשֶׂה הַטּוֹב וְהַיָּשָׁר בְּעֵינֵי יְהוָה אֱלֹהֶיךָ׃

Keep and listen to all these words that I command you, so that it may go well with you and with your children after you for ever, when you do what is good and right in the eyes of the Eternal your Almighty.

Remez רֶמֶז

To keep is to wait

It is said that every day a voice goes out from Mount Chorev, yet no one hears it. Why call if no one hears? The sages find the answer in the first two words of the verse.

Kitzur Ba'al HaTurim: "keep and listen": an ignorant man does not fear sin. And next to "the good and the right" comes the verse about war: only the righteous go out to war. Degel Machaneh Ephraim: the voice from Chorev is the thoughts of return that come to a person every day. "Keep" means "wait": whoever stands and waits for the word of the Eternal will surely hear.

How Kitzur Ba'al HaTurim and Degel Machaneh Ephraim explain it

Kitzur Ba'al HaTurim Keep and listen

An ignorant man does not fear sin, and a boor is not pious.

Kitzur Ba'al HaTurim When you do the good and the right in the eyes of the Eternal

And next to it: "When the Eternal cuts off" (Devarim / Deuteronomy 12:29). This teaches that only the righteous go out to war, those who do the good and the right.

Degel Machaneh Ephraim Keep and listen and so on

One may say that these two words hint at "a heavenly voice goes out from Mount Chorev" and so on. And my grandfather of blessed memory said that, as is known, it is the thoughts of return that come to a person every day. See the holy books of the Rav of Polonne of blessed memory.

And by this the question and wonder is explained: why does the herald go out when there is no one who hears? And he of blessed memory explained: whoever wishes to weigh the steps of his feet on the scales and seek the way of the Eternal, and stands and waits for when the awakening of the word of the Eternal will come to him, will surely hear the heavenly voice, which is the thoughts of return.

And this is the hint in the word "keep" (שְׁמֹר): it means "wait", that is, be waiting and hoping to hear the word of the Eternal, and then "you will hear" (וְשָׁמַעְתָּ) for certain the thoughts of return that come to a person every day, the awakening of the heavenly voice. And the Almighty will send blessing.

Takeaway

"An ignorant man does not fear sin, and a boor is not pious" are the words of Hillel (Avot 2:5). Kitzur Ba'al HaTurim sets them on two words of the verse: only one who has listened and learned (וְשָׁמַעְתָּ) can guard against sin (שְׁמֹר).
The verb שָׁמַר means both "keep" and "wait": "And his father kept the matter" (Bereshit / Genesis 37:11), and Rashi there: he waited for it to come true. Hence the reading of Degel Machaneh Ephraim: "keep" is "wait".
"Every day a heavenly voice goes out from Mount Chorev" is from the Mishnah (Avot 6:2). The author's grandfather is the Ba'al Shem Tov, the Rav of Polonne is Rabbi Yaakov Yosef, author of "Toldot Yaakov Yosef".