The king had a dream of seven fat cows being eaten by seven skinny ones and seven ears of corn being replaced with shriveled ones, and he was terrified. None of his advisors could interpret it. When the servant who was released from prison heard about it, he remembered Joseph from prison and persuaded the king to send him to Joseph so that he could return with an interpretation. Joseph told the servant that Egypt would face seven years of prosperity and then suffer seven years of famine and that the king should prepare for it so as to avoid great suffering.