[And Jacob dwelt in the land.] This is what Scripture says (in I Chronicles 29:15): "For we are sojourners before You [and residents like all our fathers]." So it is with the righteous: the Holy One, blessed be He, makes them the essential ones, yet they make themselves secondary. Abraham — the Holy One, blessed be He, magnified him, as it is said (in Genesis 12:2): "And I will bless you and make your name great." And likewise (in Genesis 13:17): "Arise, walk about the land." Yet he says to the children of Heth (in Genesis 23:4): "I am a sojourner and a resident among you." And likewise Isaac — the Holy One, blessed be He, magnified him, as it is said (in Genesis 26:12): "And Isaac sowed in that land." And it says (in Genesis 26:6): "And Isaac dwelt in Gerar." And likewise Jacob: "And Jacob dwelt in the land of his father's sojournings." Therefore it is said: "For we are sojourners before You and residents like all our fathers."
Why the Patriarchs Called Themselves Sojourners and Strangers
Midrash Tanchuma Buber, Vayeshev 3:1
[וישב יעקב]. זש"ה כי גרים אנחנו לפניך [ותושבים ככל אבותינו], (דה"א כט טו). כן הן הצדיקים, הקב"ה עשה אותן עיקר, והן עושין עצמן טפלין, אברהם גידלו הקב"ה, שנאמר ואברכך ואגדלה שמך וגו' (בראשית יב ב), וכן קום התהלך בארץ וגו' (שם יג יז), הוא אומר לבני חת גר ותושב אנכי עמכם (שם כג ד), וכן יצחק גידלו הקב"ה, שנאמר ויזרע יצחק בארץ ההוא וגו' (שם כו יב), ואומר (ויגר) [וישב] יצחק בגרר (שם כו ו), וכן יעקב וישב יעקב בארץ מגורי אביו, לכך נאמר כי גרים אנחנו לפניך ותושבים ככל אבותינו.