Exodus 22:21

22:21 “You must not wrong a foreigner nor oppress him, for you were foreigners in the land of Egypt.

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.