Exodus 23:9

You shall not harass a sojourner, for you know the life of a newcomer. For you yourselves also were sojourners in the land of Egypt

Other versions

King James Version

Also thou shalt not oppress a stranger: for ye know the heart of a stranger, seeing ye were strangers in the land of Egypt.

English Standard Version

"You shall not oppress a sojourner. You know the heart of a sojourner, for you were sojourners in the land of Egypt.

New International Version

"Do not oppress an alien; you yourselves know how it feels to be aliens, because you were aliens in Egypt.