كتاب الصيام
5  
Fasting
Bulugh al-Maram 669
Abu Hurairah (RAA) narrated that The Messenger of Allah (ﷺ) said:
‘Whoever forgets that he is fasting, and eats or drinks is to complete his fast, as it was Allah who fed him and gave him something to drink." Agreed upon.
وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ مَنْ نَسِيَ وَهُوَ صَائِمٌ, فَأَكَلَ أَوْ شَرِبَ, فَلْيُتِمَّ صَوْمَهُ, فَإِنَّمَا أَطْعَمَهُ اَللَّهُ وَسَقَاهُ } مُتَّفَقٌ عَلَيْهِ 1‏ .‏
Reference : Bulugh al-Maram 669
In-book reference : Book 5, Hadith 669
English translation : Book 5, Hadith 690
Hadith Text
Reference