Sahih Bukhari | Volume 8 | Hadith Number 834

Narrated by Abu Huraira
Allah's Apostle forbade Al-Wisal (fasting continuously for more than one day without taking any meals). A man from the Muslims said, "But you do Al-Wisal, O Allah's Apostle!" Allah's Apostle I said, "Who among you is similar to me? I sleep and my Lord makes me eat and drink." When the people refused to give up Al-Wisal, the Prophet fasted along with them for one day, and did not break his fast but continued his fast for another day, and when they saw the crescent, the Prophet said, "If the crescent had not appeared, I would have made you continue your fast (for a third day)," as if he wanted to punish them for they had refused to give up Al-Wisal.