The Messenger of Allah ﷺ prohibited perpetual fasting. They (the people) said: You keep perpetual fasting, Messenger of Allah. He said: My position is not like that you yours. I am provided with food and drink. (Using translation from Abū Dāʾūd 2360)
وَاصَلَ رَسُولُ اللهِ ﷺ فَوَاصَلَ النَّاسُ فَنَهَاهُمْ فَقَالُوا يَا رَسُولَ اللهِ فَإِنَّكَ تُوَاصِلُ؟ فَقَالَ إِنِّي لَسْتُ كَهَيْئَتِكُمْ إِنِّي أُطْعَمُ وَأُسْقَى