Deuteronomy 24:13
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. 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.
God's law shows His tender care for the poor by requiring that a garment taken as security for a debt be given back at sunset in every case, so that its owner may sleep at night in his own clothing. The creditor was forbidden to enter the borrower's house to take the pledge, but was to remain outside in the street while it was brought out to him. By the time of Christ these merciful requirements were largely disregarded.
Christ's direction that a man sued for his inner garment should yield the outer garment also goes further than Moses authorized. It teaches submission to the decisions of courts even when clothing is demanded, and willingness to satisfy what is owed even by surrendering more than the court allowed to be seized.