Devarim24:13

הָשֵׁב תָּשִׁיב לוֹ אֶת־הַעֲבוֹט כְּבֹא הַשֶּׁמֶשׁ וְשָׁכַב בְּשַׂלְמָתוֹ וּבֵרֲכֶךָּ וּלְךָ תִּהְיֶה צְדָקָה לִפְנֵי יְהוָה אֱלֹהֶיךָ׃

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.

Devarim 24:13

הָשֵׁב תָּשִׁיב לוֹ

Devarim / Deuteronomy 24:13

הָשֵׁב תָּשִׁיב לוֹ אֶת־הַעֲבוֹט כְּבֹא הַשֶּׁמֶשׁ וְשָׁכַב בְּשַׂלְמָתוֹ וּבֵרֲכֶךָּ וּלְךָ תִּהְיֶה צְדָקָה לִפְנֵי יְהוָה אֱלֹהֶיךָ׃

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.

Pshat פְּשָׁט

It will count for you

Rashi: a night garment is returned for the night, a day garment in the morning. Even if the poor man gives no thanks, it will be righteousness for you. Ibn Ezra: weigh your fellow on honest scales, as yourself. Kli Yakar cites King Monobaz: righteousness is stored where no other hand can reach.

How Rashi, Ibn Ezra, and Kli Yakar explain it

Remez רֶמֶז

The letters of "he will lie down"

Kedushat Levi: a person must limit himself to receive abundance from above. With what? With "and he will lie down" (וְשָׁכַב): the letter shin (ש) with three heads and twenty-two (כ״ב) letters. Minchat Shai notes how different scrolls vowel the word "and bless you."

How Kedushat Levi and Minchat Shai explain it

Drash דְּרָשׁ

The treasures of King Monobaz

The Talmud tells of King Monobaz, who in years of famine gave away his treasures and his fathers' treasures. His family reproached him. He answered: my fathers stored below, I above. My fathers stored for others and for this world, I for myself and for the world to come. The proof: "and it shall be righteousness for you."

How Ein Yaakov explain it

Sod סוֹד

Not for thanks

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