Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever eats or drinks forgetfully while he is fasting, let him complete his fast, for Allah has fed him and given him drink.”
Source: Ṣaḥīḥ al-Bukhārī 1933, Ṣaḥīḥ Muslim 1155
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ نَسِيَ وَهُوَ صَائِمٌ فَأَكَلَ أَوْ شَرِبَ فَلْيُتِمَّ صَوْمَهُ فَإِنَّمَا أَطْعَمَهُ اللَّهُ وَسَقَاهُ
1933 صحيح البخاري كتاب الصوم باب الصائم إذا أكل أو شرب ناسيا
1155 صحيح مسلم كتاب الصيام باب أكل الناسي وشربه وجماعه لا يفطر