(42) باب كَمِ التَّعْزِيرُ وَالأَدَبُ
Narrated Abu Huraira:
Allah's Messenger (ﷺ) 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 Messenger (ﷺ)!" Allah's Messenger (ﷺ) 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.
Reference: Sahih al-Bukhari 6851
In-book reference: Book 86, Hadith 74
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 82, Hadith 834