Genesis 41:14-32 NIV
So Pharaoh sent for Joseph, and he was quickly brought from the dungeon. When he had shaved and changed his clothes, he came before Pharaoh.
Pharaoh said to Joseph, “I had a dream, and no one can interpret it. But I have heard it said of you that when you hear a dream you can interpret it.”
“I cannot do it,” Joseph replied to Pharaoh, “but God will give Pharaoh the answer he desires.”
Then Pharaoh said to Joseph, “In my dream I was standing on the bank of the Nile, when out of the river there came up seven cows, fat and sleek, and they grazed among the reeds. After them, seven other cows came up—scrawny and very ugly and lean. I had never seen such ugly cows in all the land of Egypt. The lean, ugly cows ate up the seven fat cows that came up first. But even after they ate them, no one could tell that they had done so; they looked just as ugly as before. Then I woke up.
“In my dream I saw seven heads of grain, full and good, growing on a single stalk. After them, seven other heads sprouted—withered and thin and scorched by the east wind. The thin heads of grain swallowed up the seven good heads. I told this to the magicians, but none of them could explain it to me.”
Then Joseph said to Pharaoh, “The dreams of Pharaoh are one and the same. God has revealed to Pharaoh what he is about to do. The seven good cows are seven years, and the seven good heads of grain are seven years; it is one and the same dream. The seven lean, ugly cows that came up afterward are seven years, and so are the seven worthless heads of grain scorched by the east wind: They are seven years of famine.
“It is just as I said to Pharaoh: God has shown Pharaoh what he is about to do. Seven years of great abundance are coming throughout the land of Egypt, but seven years of famine will follow them. Then all the abundance in Egypt will be forgotten, and the famine will ravage the land. The abundance in the land will not be remembered, because the famine that follows it will be so severe. The reason the dream was given to Pharaoh in two forms is that the matter has been firmly decided by God, and God will do it soon.
NIV: New International Version