God used Joseph to bless his immediate family, and God used Joseph to bless the nation that grew from that family,
“By faith Joseph, when he was dying, made mention of the departure of the children of Israel, and gave instructions concerning his bones” (Hebrews 11:22).
God revealed to Joseph that someday the family of Israel would leave Egypt, and that when the time arrived, they would have to take the bones of Joseph with him.
Interestingly, the brothers of Joseph sent him to Egypt, but the Lord reversed everything and brought the brothers to Egypt where they died and were buried, but He had the descendants of the brothers take the bones of Joseph out of Egypt and take them to the Land of Canaan.
Do you not just love the way our God works?