Remember that you were a slave in Egypt, and Yahweh your God redeemed you from there. That is why I command you to do this.
In context
16Parents are not to be put to death for their children, nor children for their parents; each person is to die for his own sin. 17Do not deprive the foreigner or the fatherless of justice, and do not take a widow’s garment as security for a debt. 18Remember that you were a slave in Egypt, and Yahweh your God redeemed you from there. That is why I command you to do this. 19When you reap the harvest in your field and forget a sheaf there, do not go back for it. Leave it for the foreigner, the fatherless, and the widow, so that Yahweh your God may bless you in all the work of your hands. 20When you beat the olives from your trees, do not go over the branches a second time. Leave what remains for the foreigner, the fatherless, and the widow.