50:25

וַיַּשְׁבַּע יוֹסֵף אֶת־בְּנֵי יִשְׂרָאֵל לֵאמֹר פָּקֹד יִפְקֹד אֱלֹהִים אֶתְכֶם וְהַעֲלִתֶם אֶת־עַצְמֹתַי מִזֶּה׃

And Yosef made the sons of Israel swear, saying: "The Almighty will surely remember you, and you shall carry up my bones from here."

Bereshit 50:25

וַיַּשְׁבַּע יוֹסֵף אֶת־בְּנֵי

Bereshit / Genesis 50:25 · Pshat

Bereshit 50:25

וַיַּשְׁבַּע יוֹסֵף אֶת־בְּנֵי יִשְׂרָאֵל לֵאמֹר פָּקֹד יִפְקֹד אֱלֹהִים אֶתְכֶם וְהַעֲלִתֶם אֶת־עַצְמֹתַי מִזֶּה׃

And Yosef made the sons of Israel swear, saying: "The Almighty will surely remember you, and you shall carry up my bones from here."

Pshat פְּשָׁט

An oath for the generations

The book of Bereshit ends not with Yosef's death but with an oath. He adjures "the sons of Israel": when the Almighty remembers you, carry my bones up from here. Why an oath, and why not at once?

Tur HaArokh: Yosef saw that his brothers were old, so he adjured their sons and his father's whole house to pass the oath on until the redemption. He did not ask to be carried at once: perhaps they could not have done it then, and Pharaoh would not have let them take him out. Haamek Davar: the oath held because all generations are bound to repay Yosef for the good he did their fathers.

How Ba'al HaTurim and Haamek Davar explain it

Ba'al HaTurim And Yosef adjured the sons of Israel

Seeing that his brothers were old, he adjured all their sons and his father's whole house, so that they too would command it to their sons for the time of the redemption, for all of them knew of the exile. And as for his not commanding that they carry him at once: perhaps they could not have carried him then, and Pharaoh also would not have let them take him out of the land.

Haamek Davar And Yosef adjured, and so on

Since they were, as it were, bound to repay him for the good he had done them, his adjuring them was effective even against their will. And also for later generations: for all generations are bound to repay Yosef with good for the good he did their father. And in the Mekhilta, on the section Beshalach, it is taught: "he had surely adjured them", that they should adjure their sons. And see what is written there.

Takeaway

The oath was kept hundreds of years later: "and Moshe took Yosef's bones with him, for he had surely adjured the sons of Israel" (Shemot / Exodus 13:19).
Yosef was buried in Shechem, in the field that Yaakov bought (Yehoshua / Joshua 24:32). There Yosef once came looking for his brothers, and from there his road to Egypt began (37:12–17).
Yaakov asked to be buried at once, and his sons carried him to Canaan (50:13). Yosef, the second man in Egypt, knew that the pharaohs would not let him go.