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.
Hebrews 11:22 By faith Joseph, when he died, made mention of the departing of the children of Israel; and gave commandment concerning his bones.
In his valedictory speech Joseph desired his final remains to depart from Egypt to the promised land. It was not a vain wish. He identified himself with God's people rather than the people of Egypt. He prophesied of Israel's future departure from Egypt. He signified his faith in God's promise. Joseph strengthened the faith of his kin by demonstrating his resolve in this matter.
Exodus 13:19 And Moses took the bones of Joseph with him: for he had straitly sworn the children of Israel, saying, God will surely visit you; and ye shall carry up my bones away hence with you.
Joshua 24:32 And the bones of Joseph, which the children of Israel brought up out of Egypt, buried they in Shechem, in a parcel of ground which Jacob bought of the sons of Hamor the father of Shechem for an hundred pieces of silver: and it became the inheritance of the children of Joseph.