וְהָיָ֡ה כַּאֲשֶׁר֩ יַחֲלֹ֨ם הָרָעֵ֜ב וְהִנֵּ֣ה אוֹכֵ֗ל וְהֵקִיץ֮ וְרֵיקָ֣ה נַפְשׁוֹ֒ וְכַאֲשֶׁ֨ר יַחֲלֹ֤ם הַצָּמֵא֙ וְהִנֵּ֣ה שֹׁתֶ֔ה וְהֵקִיץ֙ וְהִנֵּ֣ה עָיֵ֔ף וְנַפְשׁ֖וֹ שׁוֹקֵקָ֑ה כֵּ֣ן יִֽהְיֶ֗ה הֲמוֹן֙ כָּל־הַגּוֹיִ֔ם הַצֹּבְאִ֖ים עַל־הַ֥ר צִיּֽוֹן׃ (ס)
און עס װעט זײַן: אַזױ װי אַ הונגעריקן חלומט זיך, ערשט ער עסט, און ער כאַפּט זיך אױף, און זײַן לײַב איז לײדיק, און אַזױ װי אַ דאָרשטיקן חלומט זיך, ערשט ער טרינקט, און ער כאַפּט זיך אױף, ערשט ער איז שלאַף, און זײַן זעל איז פֿאַרשמאַכט, אַזױ װעט זײַן דער המון פֿון אַלע פֿעלקער, װאָס האַלטן מלחמה אױף באַרג צִיון.
Chizkuni
והנה חלום, and Pharaoh realised that what he had seen was in a dream. Whenever a person is dreaming, he believes that the images shown him represent reality, and that is why he reacts to them with different degrees of joy or consternation. As soon as he wakes up, he realises that what had so emotionally disturbed him had only been a dream. Proof of this statement can be found in Isaiah 29,8: והיה כאשר יחלום הצמא והנה שותה והקיץ ונפשו שוקקה, “like one who is thirsty and dreams that he is drinking, but when he wakes up he finds himself faint and utterly parched.” Pharaoh was meant to react in a similar manner to the cows he saw consuming cows twice their size without gaining weight. However he waited until Joseph had completed his interpretation. Some commentators point out that as far as the cows in Paraoh’s dream are concerned, we do not even find that the Torah writes that upon awaking he realised that this had been only a dream. [as opposed to the dream with the stalks of kernels of grain.] The reason for this is that it does happen in real life occasionally that one cow eats another cow. Kernels of grain consuming other kernels of grain however, is something that is unheard of.” This is why the Torah added the words: “and here it had been a dream,” to describe Pharaoh’s reaction when awaking. Another interpretation of these two words is that Pharaoh now realised that the dream had ended.
Rashi
תשוקתך THY DESIRE — Similar to (Isaiah 29:8), ונפשו שוקקה “and his soul hath appetite”, (desires).