Exodus 22:21

21 “Do not mistreat or oppress a foreigner, for you were foreigners in Egypt.

Read Exodus 22:21 Using Other Translations

Thou shalt neither vex a stranger, nor oppress him: for ye were strangers in the land of Egypt.
"You shall not wrong a sojourner or oppress him, for you were sojourners in the land of Egypt.
“You must not mistreat or oppress foreigners in any way. Remember, you yourselves were once foreigners in the land of Egypt.