Deuteronomy 10:19

17 For the LORD your God is God of gods, and Lord of lords, a great God, a mighty, and a terrible, which regardeth not persons, nor taketh reward:

18 He doth execute the judgment of the fatherless and widow, and loveth the stranger, in giving him food and raiment.

Love ye therefore the stranger: for ye were strangers in the land of Egypt.

20 Thou shalt fear the LORD thy God; him shalt thou serve, and to him shalt thou cleave, and swear by his name.

21 He is thy praise, and he is thy God, that hath done for thee these great and terrible things, which thine eyes have seen.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
So you also must love the foreigner, since you yourselves were foreigners in the land of Egypt.
KJV
Love ye therefore the stranger: for ye were strangers in the land of Egypt.
WEB
Therefore love the foreigner, for you were foreigners in the land of Egypt.
ASV
Love ye therefore the sojourner; for ye were sojourners in the land of Egypt.
DARBY
And ye shall love the stranger; for ye have been strangers in the land of Egypt.
BLB
And you⁺ shall love the sojourner, for you⁺ were sojourners in the land of Egypt.
ÅB
Derfor skal også dere elske den fremmede; dere har selv vært fremmede i Egypt.
OTB
Vis kjærlighet til dem som er fremmede, for dere var selv fremmede i Egypt.
B1930
Derfor skal også I elske den fremmede; I har selv vært fremmede i Egyptens land.

Study notes (Tyndale)

Original text and word study

Cross references