You shall not oppress a foreigner; you yourselves know how it feels to be a foreigner, since you were foreigners in the land of Egypt.
In context
7Keep far from a false accusation, and do not put an innocent or righteous person to death, for I will not acquit the guilty. 8You shall not accept a bribe, for a bribe blinds those who see clearly and twists the words of the righteous. 9You shall not oppress a foreigner; you yourselves know how it feels to be a foreigner, since you were foreigners in the land of Egypt. 10For six years you are to sow your land and gather its harvest, 11but in the seventh year let the land rest and lie unplowed, so the poor among your people may eat from it, and whatever they leave the wild animals may eat. Do the same with your vineyard and your olive grove.