Exodus 22:21

You shall not harass the newcomer, nor shall you afflict him. For you yourselves were once newcomers in the land of Egypt

Other versions

King James Version

Thou shalt neither vex a stranger, nor oppress him: for ye were strangers in the land of Egypt.

English Standard Version

"You shall not wrong a sojourner or oppress him, for you were sojourners in the land of Egypt.

New International Version

"Do not mistreat an alien or oppress him, for you were aliens in Egypt.