"And he was there with the LORD forty days and forty nights; [he ate no bread and drank no water]" (Exodus 34:28). Is it possible for a person to be forty days without eating and without drinking? Angels came down from heaven to Abraham and they ate. Moses ascended to the upper realms; he saw that there was neither eating nor drinking there, so he neither ate nor drank.
Why Moses Neither Ate Nor Drank Forty Days on Sinai
Midrash Tanchuma Buber, Ki Tisa 19:1
ויהי שם עם ה' ארבעים יום וארבעים לילה [לחם לא אכל ומים לא שתה] (שמות לד כח), אפשר לאדם שיהא ארבעים יום בלא אכילה ובלא שתיה, מלאכים ירדו מן השמים אצל אברהם ואכלו, משה עלה לעליונים ראה שאין שם לא אכילה ולא שתיה, לא אכל ולא שתה.