Leviticus 25:47ach
'Now if the means of a stranger or of a sojourner with you becomes sufficient, and a countryman of yours becomes so poor with regard to him as to sell himself to a stranger who is sojourning with you, or to the descendants of a stranger's family,
Addresses a countryman sold to a foreigner living among Israel.
Deuteronomy 1:16ach
"Then I charged your judges at that time, saying, 'Hear {the cases} between your fellow countrymen, and judge righteously between a man and his fellow countryman, or the alien who is with him.
Judges must decide fairly between countrymen and with aliens.