Devarim8:18

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

But you shall remember the Eternal your Almighty, for it is He who gives you power to get wealth, that He may establish His covenant which He swore to your fathers, as it is this day.

Devarim 8:18

וְזָכַרְתָּ אֶת־יְהוָה אֱלֹהֶיךָ

Devarim / Deuteronomy 8:18 · Pshat

Devarim 8:18

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

But you shall remember the Eternal your Almighty, for it is He who gives you power to get wealth, that He may establish His covenant which He swore to your fathers, as it is this day.

Pshat פְּשָׁט

Power sent from above

You worked hard, and success finally came. It is easy to say: "I did it myself." The verse reminds you where your very power to work comes from.

Ibn Ezra: if it enters your heart to say "my power and the might of my hand", remember the One who gives you power. Malbim: the wealth is made by your hand and your efforts, but the very power to move the hand is sent from above. And it is given for the sake of the covenant with the fathers, so keep the commandments, so that this power stays with you.

How Ibn Ezra and Malbim explain it

Ibn Ezra And you shall remember

The meaning is: if it enters your heart to say "my power and the might of my hand", remember the One who gives you power.

Malbim And you shall remember

To this He answers: even if you forget how you were trained in the days of old, you must still remember that the wealth you are gathering now too, although it is made by the might of your hand and your efforts, is not made by your power. For the inner power you have to gain wealth by the might of your hand is a power sent from above. Every movement made below has something that moves it: a higher power, which sends you life and power so that you can move your hand and your whole body and gain wealth.

And the reason He gives you power to gain wealth by the might of your hand is "that He may establish His covenant which He swore to your fathers". So you must keep the commandments of the Eternal, so that this power, and the covenant, and the kindness which He swore to your fathers stay with you.

Takeaway

The verse continues the one before: "And you say in your heart: 'My power and the might of my hand have gotten me this wealth'" (Devarim / Deuteronomy 8:17).
"How you were trained in the days of old" means the forty years in the wilderness: the manna, the water from the rock, the clothing that did not wear out (Devarim / Deuteronomy 8:2–4, 8:15–16).
The word חַיִל means both "strength, army" and "wealth". Onkelos translates the verse: "He gives you counsel how to acquire property".