Genesis 50:25
And Joseph took an oath of the children of Israel, saying, God will surely visit you, and ye shall carry up my bones from hence. And Joseph took an oath of the children of Israel, saying, God will surely visit you, and ye shall carry up my bones from hence.
Joseph spoke the oath just before he died as an expression of unshaken faith and prophetic assurance that God would surely visit Israel and bring them out of Egypt, delivering them from bondage and oppression and restoring them to the land promised to Abraham, Isaac, and Jacob. Although honored in Egypt, he regarded it as a place of exile, so he bound the children of Israel by oath to carry his bones up from there to Canaan when they departed. His coffin remained among them as a reminder that their stay in Egypt was temporary and that deliverance would come.
During cruel enslavement under the last two tyrannical kings of Egypt, the elders repeated Joseph's words, together with the promise made to Abraham, to sustain and strengthen the people's sinking and failing faith and to encourage hope for deliverance. The faithful were confident God would soon bring them up and break their oppression. Some who heard listened and believed, while many looked at their sad condition and suffering and lost hope because it seemed to contradict the promise. The Egyptians learned of the expectation and mocked it, speaking scornfully of the power of Israel's God to free them.
The charge was fulfilled when Moses took Joseph's bones with the Israelites as they left Egypt.