Deuteronomy 24:13

Instead, you shall return it to him promptly, before the setting of the sun, so that, sleeping in his own garment, he may bless you, and you may have justice in the presence of the Lord your God

Other versions

King James Version

In any case thou shalt deliver him the pledge again when the sun goeth down, that he may sleep in his own raiment, and bless thee: and it shall be righteousness unto thee before the LORD thy God.

English Standard Version

You shall restore to him the pledge as the sun sets, that he may sleep in his cloak and bless you. And it shall be righteousness for you before the LORD your God.

New International Version

Return his cloak to him by sunset so that he may sleep in it. Then he will thank you, and it will be regarded as a righteous act in the sight of the LORD your God.