Contradiction with Genesis 50:24-26
Whereas Hebrews 11:22 suggests faith in the promise of the exodus, Genesis describes Joseph's command about his bones from a more historical and factual perspective rather than highlighting faith.
Genesis 50:24-26: And Joseph said unto his brethren, I die: and God will surely visit you, and bring you out of this land unto the land which he sware to Abraham, to Isaac, and to Jacob.