Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:8071Abū Aḥmad ʿAbdullāh b. Muḥammad b. al-Ḥasan al-Mihrajānī And ʾAbū Naṣr Aḥmad b. ʿAlī b. Aḥmad al-Fāmī > Abū ʿAbdullāh Muḥammad b. Yaʿqūb al-Shaybānī > Ibrāhīm b. ʿAbdullāh > ʿAbdullāh b. Bakr al-Sahmī > Hishām > Muḥammad b. Sīrīn > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said: "If one of you forgets and eats or drinks while fasting, he should complete his fast, for it is only Allah who has fed him and given him drink."  

البيهقي:٨٠٧١أَخْبَرَنَا أَبُو أَحْمَدَ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ الْحَسَنِ الْمِهْرَجَانِيُّ وَأَبُو نَصْرٍ أَحْمَدُ بْنُ عَلِيِّ بْنِ أَحْمَدَ الْفَامِيُّ قَالَا ثنا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ الشَّيْبَانِيُّ ثنا إِبْرَاهِيمُ بْنُ عَبْدِ اللهِ أنبأ عَبْدُ اللهِ بْنُ بَكْرٍ السَّهْمِيُّ ثنا هِشَامٌ عَنْ مُحَمَّدِ بْنِ سِيرِينَ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِذَا نَسِيَ أَحَدُكُمْ فَأَكَلَ أَوْ شَرِبَ وَهُوَ صَائِمٌ فَلْيُتِمَّ صَوْمَهُ فَإِنَّمَا أَطْعَمَهُ اللهُ وَسَقَاهُ  

أَخْرَجَهُ الْبُخَارِيُّ فِي الصَّحِيحِ مِنْ حَدِيثِ يَزِيدَ بْنِ زُرَيْعٍ وَأَخْرَجَهُ مُسْلِمٌ مِنْ حَدِيثِ إِسْمَاعِيلَ ابْنِ عُلَيَّةَ كِلَاهُمَا عَنْ هِشَامِ بْنِ حَسَّانَ

See similar narrations below:

Collected by Bayhaqī
bayhaqi:8072Abū al-Qāsim ʿAbd al-Khāliq b. ʿAlī b. ʿAbd al-Khāliq al-Muʾadhhin > Abū Aḥmad Muḥammad b. Jaʿfar al-Karābīsī > al-Ḥusayn b. al-Faḍl al-Bajalī > Hawdhah b. Khalīfah > ʿAwf > Khilās And Muḥammad > Abū Hurayrah

[Machine] On the authority of the Prophet Muhammad ﷺ , he said: "If one of you observes fasting for a day and forgets and eats or drinks, then let him complete his fast, for indeed it is Allah who provides him with food and drink."  

البيهقي:٨٠٧٢أَخْبَرَنَا أَبُو الْقَاسِمِ عَبْدُ الْخَالِقِ بْنُ عَلِيِّ بْنِ عَبْدِ الْخَالِقِ الْمُؤَذِّنُ أنبأ أَبُو أَحْمَدَ مُحَمَّدُ بْنُ جَعْفَرٍ الْكَرَابِيسِيُّ ثنا الْحُسَيْنُ بْنُ الْفَضْلِ الْبَجَلِيُّ ثنا هَوْذَةُ بْنُ خَلِيفَةَ ثنا عَوْفٌ عَنْ خِلَاسٍ وَمُحَمَّدٌ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ إِذَا صَامَ أَحَدُكُمْ يَوْمًا وَنَسِيَ فَأَكَلَ وَشَرِبَ فَلْيُتِمَّ صَوْمَهُ فَإِنَّمَا أَطْعَمَهُ اللهُ وَسَقَاهُ  

أَخْرَجَهُ الْبُخَارِيُّ مِنْ حَدِيثِ أَبِي أُسَامَةَ عَنْ عَوْفٍ