Leviticus 19:34
32 You must stand up in the presence of the aged, honor the presence of an elder, and fear your God. I am the Lord. 33 When a resident foreigner lives with you in your land, you must not oppress him. 34 The resident foreigner who lives with you must be to you as a native citizen among you; so you must love the foreigner as yourself, because you were foreigners in the land of Egypt. I am the Lord your God. 35 You must not do injustice in the regulation of measures, whether of length, weight, or volume. 36 You must have honest balances, honest weights, an honest ephah, and an honest hin. I am the Lord your God who brought you out from the land of Egypt.
Ezekiel 47:22
20 On the west side the Great Sea will be the boundary to a point opposite Lebo Hamath. This is the west side. 21 “This is how you will divide this land for yourselves among the tribes of Israel. 22 You must allot it as an inheritance among yourselves and for the resident foreigners who live among you, who have fathered sons among you. You must treat them as native-born among the people of Israel; they will be allotted an inheritance with you among the tribes of Israel. 23 In whatever tribe the resident foreigner lives, there you will give him his inheritance,” declares the Sovereign Lord.
Notes and References
"... Like Deuteronomistic texts, the Holiness tradition does not portray all foreigners negatively, nor does it treat all foreigners the same. Holiness texts tend to treat the “resident alien” fairly positively; in many cases, Holiness texts assert that resident aliens should be treated the “same” as native Israelites. Leviticus 19:34 expresses, in a nutshell, how the Holiness tradition views the resident alien ... A relationship to geographic space seems to be conveyed in the opposition between “native” and “resident alien” as well. The term “native” appears in construct with “the land” to produce the expression “native of the land” (Exodus 12:19, 48; Numbers 9:14). The irony of this expression is due to the tradition’s recognition that Israel is not indigenous to the land, but has supplanted nations who lived there illegitimately. As noted earlier, an ethnic group’s purported territorial origins need not be based on actual history, but is a matter of identification. Other terms used with “native” are “natives among the Israelites [literally: ‘the sons of Israel’]” (Numbers 15:29; Ezekiel 47:22) and “natives among Israel” (Leviticus 23:42). The use of the word (“son”), a term that implies familial links between Israelites, connects the idea of “nativeness” in the Holiness tradition to ancestry ..."
Rainey, Brian eligion, Ethnicity and Xenophobia in the Bible: A Theoretical, Exegetical and Theological Survey (pp. 117-119) Routledge, 2019