Devarim / Deuteronomy 7:12 · Drash
וְהָיָה עֵקֶב תִּשְׁמְעוּן אֵת הַמִּשְׁפָּטִים הָאֵלֶּה וּשְׁמַרְתֶּם וַעֲשִׂיתֶם אֹתָם וְשָׁמַר יְהוָה אֱלֹהֶיךָ לְךָ אֶת־הַבְּרִית וְאֶת־הַחֶסֶד אֲשֶׁר נִשְׁבַּע לַאֲבֹתֶיךָ׃
And it shall be, because you listen to these judgements, and keep them and do them, that the Eternal your Almighty will keep for you the covenant and the kindness which He swore to your fathers.
Drash דְּרָשׁ
What David feared
We prepare for a hard task in advance, and do an easy one "somehow". The midrash tells that King David feared exactly the easy ones.
Midrash Tanchuma: the Torah has six hundred and thirteen commandments, light and severe. People do not notice the light ones and throw them under their heels. So David feared not the severe ones but the light ones: perhaps he had transgressed one of them. The words of the Torah are sweeter than honey, and still David was careful with the light ones too, for their reward is "how great is Your goodness which You have stored up".
How Midrash Tanchuma explain it
Midrash Tanchuma And it shall be, because
This is what is written: "Why should I fear in the days of evil? The sin of my heels surrounds me" (Tehillim / Psalms 49:6). Blessed be the Name of the Holy One, blessed is He, who gave the Torah to Israel, and in it are six hundred and thirteen commandments, light and severe. And since among them there are light commandments that people pay no attention to but throw under their heels, that is, they think them light, therefore David feared the day of judgement and said: "Master of the world, I do not fear the severe commandments of the Torah, for they are severe. What do I fear? The light commandments: perhaps I transgressed one of them, whether I did it or not, because it was light. And You said: 'Be as careful with a light commandment as with a severe one.'" Therefore he said: "Why should I fear in the days of evil" and so on. "And it shall be, because you listen."
This is what is written: "They are more desirable than gold, than much fine gold" (Tehillim / Psalms 19:11), and it is written: "Your servant too is careful with them, in keeping them there is great reward (עֵקֶב רָב)" (Tehillim / Psalms 19:12). Come and see how David praises the words of the Torah: "More desirable than gold, than much fine gold." And not only that: among all kinds of grain none is dearer than pure fine flour, which melts in the mouth, and the words of the Torah are dearer than it, as it says: "And sweeter than honey and the honeycomb" (Tehillim / Psalms 19:11). Rabbi Chanina said: if you say that among all drinks none is sweeter than honey, the words of the Torah are sweeter than all, for it is written of them: "And sweeter than honey and the honeycomb."
David said before the Holy One, blessed is He: "Master of the worlds, perhaps because they are sweeter than honey I treated them carelessly, heaven forbid? No: 'Your servant too is careful with them, in keeping the heels (עֵקֶב) — great', these are the light commandments." Therefore it is written: "How great is Your goodness which You have stored up for those who fear You" (Tehillim / Psalms 31:20): this is the reward of the light commandments.
Takeaway
The midrash reads "the sin of my heels (עֲקֵבַי)" in Tehillim / Psalms 49:6 as the sin of the commandments a person tramples with his heels, and links it to the עֵקֶב of our verse.
"Be as careful with a light commandment as with a severe one" is a saying of Rabbi Yehuda HaNasi in the Mishnah (Mishnah Avot 2:1).
In Tehillim / Psalms 19:12 "עֵקֶב רָב" is usually understood as "great reward". The midrash reads: "the heels", that is, the light commandments, are a great thing.
Six hundred and thirteen is the total number of the Torah's commandments by the sages' count (Makkot 23b).