speak to Pharaoh for me.
and said, 'I am about to die;
in the land of Canaan.'
then I will return.' "
and all the dignitaries of Egypt --
and his brothers
to his father's household.
and their flocks and herds
were left in Goshen.
This wasn't only in Egypt, either. You can see the same thing happening in Babylon in the book of Nehemiah (1:4 and 2:1-2) where Nehemiah is obviously a bit nervous that the king has detected his deep mourning over the destruction of Jerusalem. It is also evident in the book of Esther (see chapters 3 and 4), where Mordecai (wearing sackcloth and ashes) is unable to proceed further than the king's gate (4:2). The latter incident took place in Persia (southwest Iran), in the city of Susa.
So, even though Joseph had saved the entire country of Egypt (not to mention surrounding nations whose people came to Egypt to buy grain during the famine), he, too, had to follow correct procedure.
As we have seen, however, Pharaoh was quite willing to have Joseph fulfill the oath he had sworn to his father. Pharaoh also provided chariots and horsemen for ceremony and protection. Pharaoh himself, obviously, would not be able to go to Canaan, but he sent his own court dignitaries and the dignitaries of the nation of Egypt to attend the burial.