Deuteronomy 24:17-25:4 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.
25 Suppose two persons have a dispute and enter into litigation, and the judges decide between them, declaring one to be in the right and the other to be in the wrong. 2 If the one in the wrong deserves to be flogged, the judge shall make that person lie down and be beaten in his presence with the number of lashes proportionate to the offense. 3 Forty lashes may be given but not more; if more lashes than these are given, your neighbor will be degraded in your sight.
4 You shall not muzzle an ox while it is treading out the grain.