Here are just a few quotes:
You must not wrong a foreigner nor oppress him, for you were foreigners in the land of Egypt.
Exodus 22:21, NETBible
You must not oppress a foreigner, since you know the life of a foreigner, for you were foreigners in the land of Egypt.
Exodus 23:9, NETBible
When a foreigner resides with you in your land, you must not oppress him. The foreigner who resides with you must be to you like a native citizen among you; so you must love him as yourself, because you were foreigners in the land of Egypt. I am the Lord your God
Leviticus 19: 33-34, NETBible
For the Lord your God is God of gods and Lord of lords, the great, mighty, and awesome God who is unbiased and takes no bribe, who justly treats the orphan and widow, and who loves resident foreigners, giving them food and clothing. So you must love the resident foreigner because you were foreigners in the land of Egypt.
Deuteronomy 10:17-19, NETBible
Stop oppressing foreigners who live in your land, children who have lost their fathers, and women who have lost their husbands. Stop killing innocent people in this land. Stop paying allegiance to other gods. That will only bring about your ruin.
Jeremiah 7:6, NETBible
The Lord says, “Do what is just and right. Deliver those who have been robbed from those who oppress them. Do not exploit or mistreat foreigners who live in your land, children who have no fathers, or widows. Do not kill innocent people in this land.”
Jeremiah 22:3, NETBible