Devarim / Deuteronomy 15:10 · Drash
נָתוֹן תִּתֵּן לוֹ וְלֹא־יֵרַע לְבָבְךָ בְּתִתְּךָ לוֹ כִּי בִּגְלַל הַדָּבָר הַזֶּה יְבָרֶכְךָ יְהוָה אֱלֹהֶיךָ בְּכָל־מַעֲשֶׂךָ וּבְכֹל מִשְׁלַח יָדֶךָ׃
You shall surely give to him, and your heart shall not be grieved when you give to him, because for this the Eternal your Almighty will bless you in all your work and in all that you put your hand to.
Drash דְּרָשׁ
The wheel
Today you give, and tomorrow you may have to ask. The sages hear in the verse about the poor the word "wheel".
Ein Yaakov, the words of Rabbi Elazar HaKappar: let a person always pray for mercy not to come to poverty. If not he, then his son, and if not his son, then his grandson, as it says: "because for this thing" (בִּגְלַל). Midrash Aggadah: בִּגְלַל is the wheel (גַּלְגַּל) that turns in the world. You think you will not come to poverty, but perhaps your son will. So do for others while you have it in hand, so that others do for you.
How Ein Yaakov and Midrash Aggadah explain it
Ein Yaakov
It was taught: Rabbi Elazar HaKappar says: let a person always pray for mercy concerning this state, for if it does not come to him, it comes to his son. And if not to his son, it comes to his son's son, as it is said: "Because for this thing (בִּגְלַל הַדָּבָר הַזֶּה)" (Devarim / Deuteronomy 15:10).
Midrash Aggadah Because for (בִּגְלַל)
It is a wheel (גַּלְגַּל) that turns in the world. For you think in your heart that you will not come to this state. But if you do not come, perhaps your son will come, or your son's son. Therefore a person needs to do for others while he has it in his hand, so that others will do for him if he or his children should need it.
Takeaway
בִּגְלַל ("because of") and גַּלְגַּל ("wheel") are written almost alike: גלגל sits inside בגלל. Hence the lesson: poverty and wealth turn like a wheel.
"This state" is poverty. The teaching is recorded in the Talmud (Shabbat 151b), and "Ein Yaakov" gathers the stories of the Talmud into one book. There too it says: "A wheel turns in the world".
The verse stands in the section about the poor brother: "Do not harden your heart and do not close your hand" (Devarim / Deuteronomy 15:7).