(Exodus 34:28:) "And he was there with the LORD" etc.; "he ate no bread." He ate the war of Torah. "And he drank no water" — he drank from the waters of Torah, as it is said (Proverbs 9:5): "Come, eat of my bread"; and it says (Isaiah 55:1): "Ho, everyone who thirsts, come to the waters."
Moses Ate the Bread of Torah on Sinai for Forty Days
Midrash Tanchuma Buber, Ki Tisa 19:3
ויהי שם עם ה' וגו' לחם לא אכל. מלחמה של תורה אכל, ומים לא שתה, מימיה של תורה שתה, שנאמר לכו לחמו בלחמי (משלי ט ה), ואומר הוי כל צמא לכו למים (ישעיה נה א).