On the third day, which was Pharaoh's birthday, he made a feast for all his servants and lifted up the head of the chief cupbearer and the head of the chief baker among his servants.
Genesis 40:20 #biblestudy #biblepatterns
The Genesis story of Joseph's life is literally true, but it is also full of allegory and prophecy. In the story of his imprisonment and rise to power, Pharaoh is in the role of God. He brought some up from the grave (prison) for eternal punishment (execution); he restored others to life and glory.
Notice the pattern of threes again? They point to death and resurrection.