Exodus 6:4
6:4 I also established my covenant with them to give them the land of Canaan, where they were living as resident foreigners.
Exodus 23:9
23:9 “You must not oppress a foreigner, since you know the life of a foreigner, for you were foreigners in the land of Egypt.