Deuteronomy 24:18

18 and thou hast remembered that a servant thou hast been in Egypt, and Jehovah thy God doth ransom thee from thence; therefore I am commanding thee to do this thing.

Deuteronomy 24:18 Meaning and Commentary

Deuteronomy 24:18

But thou shalt remember that thou wast a bondman in Egypt,
&c.] The remembrance of which may cause sympathy with persons in distress; particularly the stranger, the fatherless, and the widow:

and the Lord thy God redeemed thee thence;
the Targum of Jonathan,

``the Word of the Lord thy God;''

which, as it was an act of great kindness and mercy in God to them, taught them, and laid them under obligation to show favour to their fellow creatures in distress:

therefore I command thee to do this thing:
not to pervert the judgment of the stranger and fatherless, nor take a widow's raiment for a pledge; and it may be carried further into the context, and respect the laws about the pledge of the poor man, and giving the hired servant his wages in due time.

Deuteronomy 24:18 In-Context

16 `Fathers are not put to death for sons, and sons are not put to death for fathers -- each for his own sin, they are put to death.
17 `Thou dost not turn aside the judgment of a fatherless sojourner, nor take in pledge the garment of a widow;
18 and thou hast remembered that a servant thou hast been in Egypt, and Jehovah thy God doth ransom thee from thence; therefore I am commanding thee to do this thing.
19 `When thou reapest thy harvest in thy field, and hast forgotten a sheaf in a field, thou dost not turn back to take it; to the sojourner, to the fatherless, and to the widow, it is; so that Jehovah thy God doth bless thee in all the work of thy hands.
20 `When thou beatest thine olive, thou dost not examine the branch behind thee; to the sojourner, to the fatherless, and to the widow, it is.
Young's Literal Translation is in the public domain.