Deuteronomy 24:12-13

24:12 If the person is poor you may not use what he gives you as security for a covering. 24:13 You must by all means return to him at sunset the item he gave you as security so that he may sleep in his outer garment and bless you for it; it will be considered a just deed by the Lord your God.