B'resheet 41:1 Now it happened at the end of two full years that Pharaoh had a dream, and behold, he was standing by the Nile.
Yosef (Joseph) was forgotten in prison for two more years. We are not sure how long he spent in prison. He was 17 when he was sold into slavery (B'resheet 37:2) and 30 when he stood before Pharaoh (B'resheet 41:46). How the 13 years where split between slavery and jail time is not known.
B'resheet 41:2-4 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. And the ugly and gaunt cows ate up the seven sleek and fat cows. Then Pharaoh awoke.
This is the first of two disturbing dreams to awaken Pharaoh.
B'resheet 41:5-7 And 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. And the thin ears swallowed up the seven plump and full ears. Then Pharaoh awoke, and behold, it was a dream.
The second dream wakes Pharaoh too.
B'resheet 41:8 Now it came about in the morning that 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.
This is the same thing that happened to Nebuchadnezzar in Daniel chapter 2. He also was given a dream from G-d and his advisors were not able to interpret it.
Although Pharaoh was an idol worshipper and did not worship the true and living G-d, G-d used him in order to spare Yosef (Joseph) and his family.
B'resheet 41:9-13 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. And 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 it came about that just as he interpreted for us, so it happened; he restored me in my office, but he hanged him."
Here we see the cupbearer finally gets a chance to admit his fault of not telling the Pharaoh about Yosef.
It is interesting that Yosef is described as a "servant" of the "captain of the bodyguard" for Pharaoh. Yeshua is described as the Captain or "Commander of the army of the L-rd" in:
Y'hoshua (Joshua) 5:13-15 Now it came about when Y'hoshua (Joshua) was by Jericho, that he lifted up his eyes and looked, and behold, a man was standing opposite him with his sword drawn in his hand, and Y'hoshua went to him and said to him, "Are you for us or for our adversaries?" And he said, "No, rather I indeed come now as captain of the host of the L-RD." And Y'hoshua fell on his face to the earth, and bowed down, and said to him, "What has my lord to say to his servant?" And the captain of the L-rd's host said to Y'hoshua, "Remove your sandals from your feet, for the place where you are standing is holy." And Y'hoshua did so.
Y'hoshua was the servant of Yeshua too. We will touch on this later, L-rd willing, when we get to Y'hoshua. Yeshua appears to him with the title described as I mentioned and sees with his own eyes another theophany or pre-incarnate appearance of Yeshua. Y'hoshua bows down to him and is instructed by Yeshua to take off his sandals for the place where he is standing is holy. Y'hoshua later too becomes another type that points to the real deal. Many people in the Tanakh certainly served Yeshua correctly by their actions.
Yes, the Spirit led them and by their actions we clearly see our future Mashiach.
Back to the Pharaoh and Yosef:
B'resheet 41:14-16 Then Pharaoh sent and called for Yosef, and they hurriedly brought him out of the dungeon; and when he had shaved himself and changed his clothes, he came to Pharaoh. And Pharaoh said to Yosef, "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." Yosef then answered Pharaoh, saying, "It is not in me; G-d will give Pharaoh a favorable answer."
Shaved himself and changed his clothes - Yosef had to get cleaned up before coming before Pharaoh. The men of Egypt were clean-shaven.
Again, Yosef gives credit to G-d for his interpretations. All wisdom comes from above. All the interpretations I give of the Torah comes from above. It is not me, but HaShem.
B'resheet 41:17-24 So Pharaoh spoke to Yosef, "In my dream, behold, I was standing on the bank of the Nile; and behold, seven cows, fat and sleek came up out of the Nile; and they grazed in the marsh grass. And lo, seven other cows came up after them, poor and very ugly and gaunt, such as I had never seen for ugliness in all the land of Egypt; and the lean and ugly cows ate up the first seven fat cows. Yet when they had devoured them, it could not be detected that they had devoured them; for they were just as ugly as before. Then I awoke. I saw also in my dream, and behold, seven ears, full and good, came up on a single stalk; and lo, seven ears, withered, thin, and scorched by the east wind, sprouted up after them; and the thin ears swallowed the seven good ears. Then I told it to the magicians, but there was no one who could explain it to me. "
The corresponding letter to this chapter is Koph-holiness; cycles of growth; summary and judgment at the end of the cycle of life.
Here we certainly see cycles of growth.
B'resheet 41:25 Now Yosef said to Pharaoh, "Pharaoh's dreams are one and the same; G-d has told to Pharaoh what He is about to do.
After 13 years of slavery and imprisonment, Yosef could have turned his back on G-d and been bitter and resentful toward Him. We see that Yosef did not allow his circumstances to effect His faith.
B'resheet 41:26-31 The seven good cows are seven years; and the seven good ears are seven years; the dreams are one and the same. And the seven lean and ugly cows that came up after them are seven years, and the seven thin ears scorched by the east wind shall be seven years of famine. It is as I have spoken to Pharaoh: G-d has shown to Pharaoh what He is about to do. Behold, seven years of great abundance are coming in all the land of Egypt; and after them seven years of famine will come, and all the abundance will be forgotten in the land of Egypt; and the famine will ravage the land. So the abundance will be unknown in the land because of that subsequent famine; for it will be very severe.
G-d immediately revealed the meaning of the dream to Yosef and he confidently explains the future to Pharaoh.
B'resheet 41:32 Now as for the repeating of the dream to Pharaoh twice, it means that the matter is determined by G-d, and G-d will quickly bring it about.
B'resheet 41:33-36 And now let Pharaoh look for a man discerning and wise, and set him over the land of Egypt. Let Pharaoh take action to appoint overseers in charge of the land, and let him exact a fifth of the produce of the land of Egypt in the seven years of abundance. Then let them gather all the food of these good years that are coming, and store up the grain for food in the cities under Pharaoh's authority, and let them guard it. And let the food become as a reserve for the land for the seven years of famine which will occur in the land of Egypt, so that the land may not perish during the famine."
Yosef then advises Pharaoh in how to deal with the coming famine.