After two years' time, Pharaoh dreamed that he was standing by the Nile, when out of the Nile there came up seven cows, handsome and sturdy, and they grazed in the reed grass. But presently, seven other cows came up from the Nile close behind them, ugly and gaunt, and stood beside the cows on the bank of the Nile; and the ugly gaunt cows ate up the seven handsome sturdy cows. And Pharaoh awoke.
He fell asleep and dreamed a second time: Seven ears of grain, solid and healthy, grew on a single stalk. But close behind them sprouted seven ears, thin and scorched by the cast wind. And the thin ears swallowed up the seven solid and full ears. Then Pharaoh awoke: it was a dream!
Next morning, his spirit was agitated, and he sent for all the magicians of Egypt, and all its wise men; and Pharaoh told them his dreams, but none could interpret them for Pharaoh.
The chief cupbearer then spoke up and said to Pharaoh, "I must make mention today of my offenses. Once Pharaoh was angry with his servants, and placed me in custody in the house of the chief steward, together with the chief baker. We had dreams the same night, he and I, each of us a dream with a meaning of its own. A Hebrew youth was there with us, a servant of the chief steward; and when we told him our dreams, he interpreted them for us, telling each of the meaning of his dream. And as he interpreted for us, so it came to pass: I was restored to my post, and the other was impaled."
Thereupon Pharaoh sent for Joseph, and he was rushed from the dungeon. He had his hair cut and changed his clothes, and he appeared before Pharaoh.