Sunan an-Nasa'i, Book 22, Hadith 79 (In-Book) ⓘ
It was narrated from Al-Bara bin Azib that: if one of them went to sleep before eating supper, it was not permissible for him to eat or drink anything that night or the following day, until the sun had set. (That continued) until this Verse was revealed: "And eat and drink until the white thread (light) of dawn appears to you distinct from the black thread (darkness of night)." He said: "This was revealed concerning Abu Qais bin 'Amr who came to his family after Maghrib when he was fasting, and said: 'Is there anything to eat?" His wife said: 'No, but I will go out, and he lay down and slept. She came back and found him sleeping, so she woke him up, but he did not eat anything. He spent the night fasting and woke up the next day fasting, until he passed out at midday. That was before this Verse was revealed, and Allah revealed it concerning him." '
أَخْبَرَنِي هِلاَلُ بْنُ الْعَلاَءِ بْنِ هِلاَلٍ، قَالَ حَدَّثَنَا حُسَيْنُ بْنُ عَيَّاشٍ، قَالَ حَدَّثَنَا زُهَيْرٌ، قَالَ حَدَّثَنَا أَبُو إِسْحَاقَ، عَنِ الْبَرَاءِ بْنِ عَازِبٍ، أَنَّ أَحَدَهُمْ، كَانَ إِذَا نَامَ قَبْلَ أَنْ يَتَعَشَّى لَمْ يَحِلَّ لَهُ أَنْ يَأْكُلَ شَيْئًا وَلاَ يَشْرَبَ لَيْلَتَهُ وَيَوْمَهُ مِنَ الْغَدِ حَتَّى تَغْرُبَ الشَّمْسُ حَتَّى نَزَلَتْ هَذِهِ الآيَةُ { وَكُلُوا وَاشْرَبُوا } إِلَى { الْخَيْطِ الأَسْوَدِ } قَالَ وَنَزَلَتْ فِي أَبِي قَيْسِ بْنِ عَمْرٍو أَتَى أَهْلَهُ وَهُوَ صَائِمٌ بَعْدَ الْمَغْرِبِ فَقَالَ هَلْ مِنْ شَىْءٍ فَقَالَتِ امْرَأَتُهُ مَا عِنْدَنَا شَىْءٌ وَلَكِنْ أَخْرُجُ أَلْتَمِسُ لَكَ عَشَاءً . فَخَرَجَتْ وَوَضَعَ رَأْسَهُ فَنَامَ فَرَجَعَتْ إِلَيْهِ فَوَجَدَتْهُ نَائِمًا وَأَيْقَظَتْهُ فَلَمْ يَطْعَمْ شَيْئًا وَبَاتَ وَأَصْبَحَ صَائِمًا حَتَّى انْتَصَفَ النَّهَارُ فَغُشِيَ عَلَيْهِ وَذَلِكَ قَبْلَ أَنْ تَنْزِلَ هَذِهِ الآيَةُ فَأَنْزَلَ اللَّهُ فِيهِ .
also referenced under: Hadith 2168 (Reference) & Volume 3, Book 22, Hadith 2170 (DarusSalam)