would have interpreted the dream long before. Therefore, God waited until the magicians had wearied and had exhausted Pharaoh's spirit, and then Joseph came and restored it. Thus , "A fool spends all his spirit", refers to Pharaoh's magicians, and the continuation of , "But a wise man stills it within him", alludes to Joseph, as reports that Pharaoh said to Joseph, "There is none so discreet and wise as you." Rabbi Ḥiyya bar Abba said in the name of Rabbi Joḥanan that God intervened to cause Pharaoh to be angry with his servants, the chief cupbearer and the baker, in order to fulfill the fate of a righteous man, Joseph, in . Rabbi Bana'ah argued that the import – and potential prophetic nature – of a dream on the waking world follows its interpretation. Rabbi Eleazar found Biblical support for the proposition in the chief cupbearer's words about Joseph in , "As he interpreted for us, so it came to pass." Rava added a qualification, concluding that a dream follows its interpretation only if the interpretation corresponds to the content of the dream, for the chief cupbearer said in , "To each man according to his dream he did interpret." Reading , "And Joseph shaved himself and changed his clothes", a Midrash taught that cutting his hair improved his appearance and made him look handsome. A Midrash taught that "Joseph shaved himself and changed his clothes" (as reported in ) out of respect for royalty. Rabbi Joshua ben Levi taught that those who dream of shaving should rise early and say the words of , "And Joseph shaved himself and changed his clothes", to prevent thinking of Samson's less favorable encounter with the razor in , "If I am shaven, then my strength will go from me." Rabbi Joḥanan said that three kinds of dreams are fulfilled: A dream of the morning, a dream that one's friend dreamed about one, and a dream that is interpreted within a dream. And some say that a dream that is repeated several times is also fulfilled, as says: "And for that the dream was doubled unto Pharaoh twice, it is because the thing is established by God, and God will shortly bring it to pass." Noting the differences between the narrator's account of Pharaoh's dreams in and Pharaoh's recounting of them to Joseph in , a Midrash taught that Pharaoh somewhat changed