Now it happened at the end of two full years that Pharaoh had a dream, and behold, he was standing by the Nile. And lo, from the Nile there came up seven cows, sleek and fat; and they grazed in the marsh grass. Then behold, seven other cows came up after them from the Nile, ugly and gaunt, and they stood by the other cows on the bank of the Nile. The ugly and gaunt cows ate up the seven sleek and fat cows. Then Pharaoh awoke. He fell asleep and dreamed a second time; and behold, seven ears of grain came up on a single stalk, plump and good. Then behold, seven ears, thin and scorched by the east wind, sprouted up after them. The thin ears swallowed up the seven plump and full ears. Then Pharaoh awoke, and behold, it was a dream. Now in the morning his spirit was troubled, so he sent and called for all the magicians of Egypt, and all its wise men. And Pharaoh told them his dreams, but there was no one who could interpret them to Pharaoh.
Then the chief cupbearer spoke to Pharaoh, saying, “I would make mention today of my own offenses. Pharaoh was furious with his servants, and he put me in confinement in the house of the captain of the bodyguard, both me and the chief baker. We had a dream on the same night, he and I; each of us dreamed according to the interpretation of his own dream. Now a Hebrew youth was with us there, a servant of the captain of the bodyguard, and we related them to him, and he interpreted our dreams for us. To each one he interpreted according to his own dream. And just as he interpreted for us, so it happened; he restored me in my office, but he hanged him.”
Then Pharaoh sent and called for Joseph, and they hurriedly brought him out of the dungeon; and when he had shaved himself and changed his clothes, he came to Pharaoh. Pharaoh said to Joseph, “I have had a dream, but no one can interpret it; and I have heard it said about you, that when you hear a dream you can interpret it.” Joseph then answered Pharaoh, saying, “It is not in me; God will give Pharaoh a favorable answer.”