Vayikra26:3

אִם־בְּחֻקֹּתַי תֵּלֵכוּ וְאֶת־מִצְוֺתַי תִּשְׁמְרוּ וַעֲשִׂיתֶם אֹתָם׃

"If you walk in My statutes and keep My commandments and do them,

Vayikra 26:3

אִם־בְּחֻקֹּתַי תֵּלֵכוּ וְאֶת־מִצְוֺתַי

Vayikra / Leviticus 26:3

אִם־בְּחֻקֹּתַי תֵּלֵכוּ וְאֶת־מִצְוֺתַי תִּשְׁמְרוּ וַעֲשִׂיתֶם אֹתָם׃

"If you walk in My statutes and keep My commandments and do them,

Pshat פְּשָׁט

Toiling in Torah

Rashi: doing the commandments is already named in "keep My commandments," so "walk in My statutes" means toiling in Torah, learning in order to keep and do. Sforno: "and do them" means doing good out of the soul's own wish, out of love, not out of fear like one who was ordered.

How Rashi and Sforno explain it

Remez רֶמֶז

The way of the fathers

Ba'al HaTurim: the first letters of "If in My statutes you walk" spell "fathers" (אָבֹת): walk in the ways of the fathers. And the word "them" (אֹתָם) has the same letters as "truth" (אֱמֶת). Kli Yakar: for the learning of Torah, which is from heaven, rain comes from heaven, and the word "them" teaches that the commandments need intention.

How Kitzur Ba'al HaTurim and Kli Yakar explain it

Drash דְּרָשׁ

You have taken My craft

Midrash Tehillim: when people do not carry out judgement on earth, judgement is carried out in heaven. But when there is judgement on earth, the Eternal says: "You have taken My craft, I will look for another." And that craft is "I will give your rains in their season."

How Midrash Tehillim explain it

Sod סוֹד

Thinking before the deed

Sefat Emet explains David's words "I considered my ways": before every deed a person thinks that it should be for the sake of Heaven, and brings awareness into the deed. "Walk in My statutes" means taking on the rule of the Eternal and doing nothing without checking whether this is what He wants. At first a commandment seems a statute without a reason, and then a person begins to feel its taste, and that itself is the reward.

How Sefat Emet explain it