Devarim / Deuteronomy 7:12
וְהָיָה עֵקֶב תִּשְׁמְעוּן אֵת הַמִּשְׁפָּטִים הָאֵלֶּה וּשְׁמַרְתֶּם וַעֲשִׂיתֶם אֹתָם וְשָׁמַר יְהוָה אֱלֹהֶיךָ לְךָ אֶת־הַבְּרִית וְאֶת־הַחֶסֶד אֲשֶׁר נִשְׁבַּע לַאֲבֹתֶיךָ׃
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.
Pshat פְּשָׁט
Commandments under the heel
Rashi: the verse speaks of the light commandments that a person tramples with his heels: if you listen to them too, the Eternal will keep His promise. Ibn Ezra: the word means "at the end", the reward comes at the end. Sforno: do it out of love, not for a reward, and for that He will keep the covenant and the kindness. Rashbam: the Eternal keeps the promise to the fathers for a worthy generation.
How Rashi, Ibn Ezra, Sforno, and Rashbam explain it
Remez רֶמֶז
One hundred and seventy-two words
Kitzur Ba'al HaTurim: today, to do them, and the reward at the end. By the numerical value of the letters עֵקֶב is one hundred and seventy-two, and that is the number of words in the first Ten Utterances. And the heel teaches humility: it walks behind, and so it does not stumble. Midrash Aggadah: the same word is said of Avraham (Abraham), and for his "heel" his descendants are blessed.
How Kitzur Ba'al HaTurim and Midrash Aggadah explain it
Drash דְּרָשׁ
What David feared
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
Sod סוֹד
The reward of a commandment is the commandment
Kedushat Levi: the reward the Eternal pays for a commandment is the least of pleasures. The main pleasure is the commandment itself: a person does the will of the Creator and, as it were, brings Him joy. So "because (עֵקֶב)" means the heel and the end: the promised covenant and kindness are what comes at the end, and the main thing is already in the doing.
How Kedushat Levi explain it