Berean Standard Bible (BSB)
be sure to return it to him by sunset, so that he may sleep in his own cloak and bless you, and this will be credited to you as righteousness before the LORD your God.
World English Bible (WEB)
you shall surely restore to him the pledge when the sun goes down, that he may sleep in his garment, and bless you: and it shall be righteousness to you before Yahweh your God.
Strong's King James
In any case{H7725}{(H8687)} thou shalt deliver{H7725} him the pledge{H5667} again{H7725}{(H8686)} when the sun{H8121} goeth down{H935}{(H8800)}, that he may sleep{H7901}{(H8804)} in his own raiment{H8008}, and bless{H1288}{(H8765)} thee: and it shall be righteousness{H6666} unto thee before{H6440} the LORD{H3068} thy God{H430}.
The F.O.G *
The F.O.G Message *
Young's Literal Translation
thou dost certainly give back to him the pledge at the going in of the sun, and he hath lain down in his own raiment, and hath blessed thee; and to thee it is righteousness before Jehovah thy God.