Deuteronomy 24:13

Amplified Bible (AMP)
You shall certainly restore the pledge (security deposit) to him at sunset, so that he may sleep in his garment and bless you; and it will be credited to you as righteousness (right standing) before the Lord your God.

Read Deuteronomy 24:13 in other translations