Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:21:8

And We did not make the prophets forms not eating food, nor were they immortal ˹on earth˺.  

And We did not make them, namely, the messengers, bodies that did not eat food, nay, they eat it; and they were not immortal, in this world.
القرآن:٢١:٨

وَمَا جَعَلْنَاهُمْ جَسَدًا لَا يَأْكُلُونَ الطَّعَامَ وَمَا كَانُوا خَالِدِينَ  

{وما جعلناهم} أي الرسل {جسداً} بمعنى أجساداً {لا يأكلون الطعام} بل يأكلونه {وما كانوا خالدين} في الدنيا.