Exodus 22:21

You must not exploit or oppress a foreign resident, for you yourselves were foreigners in the land of Egypt.
BSB · Berean Standard Bible
Thou shalt neither vex a stranger, nor oppress him: for ye were strangers in the land of Egypt.
KJV · King James Version
“You shall not wrong an alien or oppress him, for you were aliens in the land of Egypt.
WEB · World English Bible
And a sojourner shalt thou not wrong, neither shalt thou oppress him: for ye were sojourners in the land of Egypt.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

vex a stranger
Exodus 23:9; Leviticus 19:33; Leviticus 25:35; Deuteronomy 10:19; Jeremiah 7:6; Jeremiah 22:3; Zechariah 7:10; Malachi 3:5
for ye were strangers
Exodus 20:2; Exodus 23:9; Deuteronomy 10:19; Deuteronomy 15:15; Deuteronomy 23:7