Deuteronomy 24:18

18 But keep in mind that you were a servant in the land of Egypt, and the Lord your God made you free: for this is why I give you orders to do this.

Deuteronomy 24:18 In-Context

16 Fathers are not to be put to death for their children or children for their fathers: every man is to be put to death for the sin which he himself has done.
17 Be upright in judging the cause of the man from a strange country and of him who has no father; do not take a widow's clothing on account of a debt:
18 But keep in mind that you were a servant in the land of Egypt, and the Lord your God made you free: for this is why I give you orders to do this.
19 When you get in the grain from your field, if some of the grain has been dropped by chance in the field, do not go back and get it, but let it be for the man from a strange land, the child without a father, and the widow: so that the blessing of the Lord your God may be on all the work of your hands.
20 When you are shaking the fruit from your olive-trees, do not go over the branches a second time: let some be for the man from a strange land, the child without a father, and the widow.
The Bible in Basic English is in the public domain.