Devarim / Deuteronomy 24:13 · Sod
הָשֵׁב תָּשִׁיב לוֹ אֶת־הַעֲבוֹט כְּבֹא הַשֶּׁמֶשׁ וְשָׁכַב בְּשַׂלְמָתוֹ וּבֵרֲכֶךָּ וּלְךָ תִּהְיֶה צְדָקָה לִפְנֵי יְהוָה אֱלֹהֶיךָ׃
You shall surely return the pledge to him when the sun goes down, so that he may sleep in his garment and bless you, and it shall be righteousness for you before the Eternal your Almighty.
Sod סוֹד
Not for thanks
When you help, it is nice to hear "thank you." And if no one says it? It is worth asking yourself whom you are doing it for.
Kedushat Levi: the poor man, receiving the pledge, will surely bless you. So one might return the pledge for the sake of his blessing. The verse teaches otherwise: do it for the Almighty and do not expect thanks. Then it will be righteousness "before the Eternal."
How Kedushat Levi explain it
Kedushat Levi And bless you, and it shall be righteousness for you before the Eternal your Almighty (Devarim / Deuteronomy 24:13)
See the explanation of Rashi. And it seems it should be explained this way. When a person returns the pledge to the poor man, the poor man will surely bless him. So it turns out one might do it so that the poor man blesses him. Therefore the verse explains: let him not do it with that intent, but do it only for the sake of the Eternal and not expect the poor man's blessing for it.
And this is the hint: "and it shall be righteousness for you" — you will do this righteousness when you fulfill the mitzvah. "Before the Eternal your Almighty" — that is, when you fulfill the mitzvah only for the sake of the Creator's command, blessed is He, and not for the poor man's blessing.
Takeaway
Rashi on this verse: "And if he does not bless you, still it shall be righteousness for you" (Pshat level). Kedushat Levi goes further: one should not even expect the blessing.
Beside it stands the lesson of the Mishnah: "Do not be like servants who serve the master for a reward" (Avot 1:3).