Genesis 41:8-14
41:8 In the morning he was troubled, so he called for all the diviner-priests of Egypt and all its wise men. Pharaoh told them his dreams, but no one could interpret them for him.
41:9 Then the chief cupbearer said to Pharaoh, “Today I recall my failures.
41:10 Pharaoh was enraged with his servants, and he put me in prison in the house of the captain of the guards – me and the chief baker.
41:11 We each had a dream one night; each of us had a dream with its own meaning.
41:12 Now a young man, a Hebrew, a servant of the captain of the guards, was with us there. We told him our dreams, and he interpreted the meaning of each of our respective dreams for us.
41:13 It happened just as he had said to us – Pharaoh restored me to my office, but he impaled the baker.”
41:14 Then Pharaoh summoned Joseph. So they brought him quickly out of the dungeon; he shaved himself, changed his clothes, and came before Pharaoh.