Deuteronomy 24:18

But you shall remember that you were a slave in Egypt, and the LORD your God redeemed you from there; therefore I command you to do this thing.

Surrounding context

24:17 "You shall not pervert justice due the stranger or the fatherless, nor take a widow's garment as a pledge.

24:18 But you shall remember that you were a slave in Egypt, and the LORD your God redeemed you from there; therefore I command you to do this thing.

24:19 "When you reap your harvest in your field, and forget a sheaf in the field, you shall not go back to get it; it shall be for the stranger, the fatherless, and the widow, that the LORD your God may bless you in all the work of your hands.

Translation and sources