It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them) that indeed the Messenger of Allah (peace and blessings be upon him) forbade continuous fasting. The noble companions (may Allah be pleased with them) submitted: Do you yourself observe continuous fasting? So he (peace and blessings be upon him) said: "My case is not like yours; indeed, I am given food and drink."
Hadith Referenceالسنن المأثورة / باب ما جاء في النهي عن الوصال في الصيام / 331
Hadith Takhrijصحیح بخاری، الصوم، باب الوصال ومن قال ليس في الليل صيام، رقم : 1962 ، صحیح مسلم، الصوم، باب النهي عن الوصال في الصوم، رقم : 1102