When the time of mourning was over, Joseph said to the Egyptian leaders, “If you consider me your friend, please speak to the king for me.
and said, “Please come to my home where I can serve you.
and it took the usual forty days. The Egyptians mourned seventy days for Jacob.
Just before my father died, he made me promise to bury him in his burial cave in Canaan. If the king will give me permission to go, I will come back here.”
But he could go only as far as the palace gate, because no one wearing sackcloth was allowed inside the palace.