Bulugh al-Maram, Book 5, Hadith 683 (English) ⓘ
Abu Hurairah (RAA) narrated, The Messenger of Allah forbade us from practicing wisal in fasting (i.e. fasting continuously without breaking one’s fast in the evening or eating before the following dawn). So a man said to him, ‘But you practice wisal O Messenger of Allah!’ The Prophet Allah replied, “Which one of you is like me? I am given food and drink during my sleep by Allah." So when people refused to stop wisal, the Prophet fasted day and night continuously along with them for a day and then another day and then they saw the crescent (of the new month of Shawwal). The Prophet said to them, "If the crescent had not appeared, I would have made you fast for a longer period." That was a punishment for them because they refused to stop (practicing Wisal). Agreed upon.
وَعَنْ أَبِي هُرَيْرَةَ - رضى الله عنه - قَالَ: { نَهَى رَسُولُ اَللَّهِ - صلى الله عليه وسلم -عَنِ اَلْوِصَالِ, فَقَالَ رَجُلٌ مِنَ اَلْمُسْلِمِينَ: فَإِنَّكَ يَا رَسُولَ اَللَّهِ تُوَاصِلُ? قَالَ: " وَأَيُّكُمْ مِثْلِي? إِنِّي أَبِيتُ يُطْعِمُنِي رَبِّي وَيَسْقِينِي ". فَلَمَّا أَبَوْا أَنْ يَنْتَهُوا عَنِ اَلْوِصَالِ وَاصَلَ بِهِمْ يَوْمًا, ثُمَّ يَوْمًا, ثُمَّ رَأَوُا اَلْهِلَالَ, فَقَالَ: " لَوْ تَأَخَّرَ اَلْهِلَالُ لَزِدْتُكُمْ " كَالْمُنَكِّلِ لَهُمْ حِينَ أَبَوْا أَنْ يَنْتَهُوا } مُتَّفَقٌ عَلَيْهِ 1. 1 - صحيح. روه البخاري ( 1965 )، ومسلم ( 1103 ).
also referenced under: Book 5, Hadith 662 (In-Book)