Psalms 39:12toshav
"Hear my prayer, O Lord, and give ear to my cry; Do not be silent at my tears; For I am a stranger with You, A sojourner like all my fathers.
The psalmist sees himself as a sojourner before God, like his fathers.
Deuteronomy 5:14ger
but the seventh day is a sabbath of the Lord your God; {in it} you shall not do any work, you or your son or your daughter or your male servant or your female servant or your ox or your donkey or any of your cattle or your sojourner who stays with you, so that your male servant and your female servant may rest as well as you.
Sabbath command repeated, including the sojourner who stays with you.
Leviticus 25:47toshav
'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,
A sojourner may become wealthy; law addresses Israelites selling themselves.