9Then the chief cupbearer said to Pharaoh, “Today I recall my failures.
10Pharaoh was once angry with his servants, and he put me and the chief baker in the custody of the captain of the guard.
11One night both the chief baker and I had dreams, and each dream had its own meaning.
12Now a young Hebrew was there with us, a servant of the captain of the guard. We told him our dreams and he interpreted them for us individually.
13And it happened to us just as he had interpreted: I was restored to my position, and the other man was hanged.”
14So Pharaoh sent for Joseph, who was quickly brought out of the dungeon. After he had shaved and changed his clothes, he went in before Pharaoh.
— Genesis 41:9-14