Deuteronomy 24:11-13

MLV(i) 11 You will stand outside and the man to whom you lend will bring forth the pledge outside to you.
12 And if he is a poor man, you will not sleep with his pledge. 13 You will surely restore to him the pledge when the sun goes down, that he may sleep in his garment and bless you. And it will be righteousness to you before Jehovah your God.