Genesis 47:4gur
They said to Pharaoh, "We have come to sojourn in the land, for there is no pasture for your servants' flocks, for the famine is severe in the land of Canaan. Now, therefore, please let your servants live in the land of Goshen."
Jacob's sons ask Pharaoh to sojourn in Egypt during famine.
2 Kings 8:1gur
Now Elisha spoke to the woman whose son he had restored to life, saying, "Arise and go with your household, and sojourn wherever you can sojourn; for the Lord has called for a famine, and it will even come on the land for seven years."
Elisha tells a woman to sojourn elsewhere during seven-year famine.
Leviticus 17:8gur
"Then you shall say to them, 'Any man from the house of Israel, or from the aliens who sojourn among them, who offers a burnt offering or sacrifice,
Aliens sojourning among Israel included in worship regulations.