I was doing a search for Bible verses that refer to 'aliens and strangers' ahead of Sunday's service - I was looking mostly for the ones about gleaning to provide a bit of context for the Ruth story, but also others about treating 'aliens' (foreigners) well. Two bit stood out for me... the verses from Ezekiel 47, above and some from Deuteronomy 27, listed below, emphasis mine. In amongst all the apparently divinely sanctioned genocides of the Hebrew scriptures, there are some repeated, clear and stern teachings about the treatment of 'resident aliens' along with widows and orphans...
The same day Moses charged the people as follows: “When you have crossed over the Jordan, these shall stand on Mount Gerizim to bless the people: Simeon, Levi, Judah, Issachar, Joseph, and Benjamin. And these shall stand on Mount Ebal for the curse: Reuben, Gad, Asher, Zebulun, Dan, and Naphtali. Then the Levites shall declare in a loud voice to all the Israelites,
“ ‘Cursed be anyone who makes an idol or casts an image, anything abhorrent to the Lord, the work of an artisan, and sets it up in secret.’ All the people shall respond, saying, ‘Amen!’
“ ‘Cursed be anyone who dishonours father or mother.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who moves a neighbour’s boundary marker.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who misleads a blind person on the road.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who deprives an alien, an orphan, or a widow of justice.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who lies with his father’s wife, because he has violated his father’s rights.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who lies with any animal.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who lies with his sister, whether the daughter of his father or the daughter of his mother.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who lies with his mother-in-law.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who strikes down a neighbour in secret.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who takes a bribe to shed innocent blood.’ All the people shall say, ‘Amen!’
“ ‘Cursed be anyone who does not uphold the words of this law by observing them.’ All the people shall say, ‘Amen!’