Berean Standard Bible (BSB)
Do not oppress a foreign resident, since you yourselves know how it feels to be foreigners; for you were foreigners in the land of Egypt.
World English Bible (WEB)
“You shall not oppress an alien, for you know the heart of an alien, since you were aliens in the land of Egypt.
Strong's King James
Also thou shalt not oppress{H3905}{(H8799)} a stranger{H1616}: for ye know{H3045}{(H8804)} the heart{H5315} of a stranger{H1616}, seeing{H3588} ye were strangers{H1616} in the land{H776} of Egypt{H4714}.
The F.O.G *
The F.O.G Message *
Young's Literal Translation
‘And a sojourner thou dost not oppress, and ye—ye have known the soul of the sojourner, for sojourners ye have been in the land of Egypt.