Genesis 41:25-36 NLT

25 "Both dreams mean the same thing," Joseph told Pharaoh. "God was telling you what he is about to do.
26 The seven fat cows and the seven plump heads of grain both represent seven years of prosperity.
27 The seven thin, ugly cows and the seven withered heads of grain represent seven years of famine.
28 This will happen just as I have described it, for God has shown you what he is about to do.
29 The next seven years will be a period of great prosperity throughout the land of Egypt.
30 But afterward there will be seven years of famine so great that all the prosperity will be forgotten and wiped out. Famine will destroy the land.
31 This famine will be so terrible that even the memory of the good years will be erased.
32 As for having the dream twice, it means that the matter has been decreed by God and that he will make these events happen soon."
33 "My suggestion is that you find the wisest man in Egypt and put him in charge of a nationwide program.
34 Let Pharaoh appoint officials over the land, and let them collect one-fifth of all the crops during the seven good years.
35 Have them gather all the food and grain of these good years into the royal storehouses, and store it away so there will be food in the cities.
36 That way there will be enough to eat when the seven years of famine come. Otherwise disaster will surely strike the land, and all the people will die."