Deuteronomy 24:17-22 New Revised Standard Version (NRSV)
17 You shall not deprive a resident alien or an orphan of justice; you shall not take a widow’s garment in pledge. 18 Remember that you were a slave in Egypt and the Lord your God redeemed you from there; therefore I command you to do this.
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 left for the alien, the orphan, and the widow, so that the Lord your God may bless you in all your undertakings. 20 When you beat your olive trees, do not strip what is left; it shall be for the alien, the orphan, and the widow.
21 When you gather the grapes of your vineyard, do not glean what is left; it shall be for the alien, the orphan, and the widow. 22 Remember that you were a slave in the land of Egypt; therefore I am commanding you to do this.