ON THE SUBJECT OF 224 OTHER MATTERS CONCERNING FASTING; BREAKING YOUR FAST BY MISTAKE H 1268 "If any of you eat or drink forgetting that he is fasting, he should continue his fast until the end, because Allah has fed him and given him to drink." R 1268 Bukhari and Muslim with a chain up to Abu Hurairah who related that the Messenger of Allah, praise and peace be upon him, said this.
باب في مسائل من الصوم 1242- عن أَبي هريرة رضي الله عنه ، عن النبيِّ صلى الله عليه وآله وسلم ، قَالَ : "إِذَا نَسِيَ أَحَدُكُمْ ، فَأكَلَ ، أَوْ شَرِبَ ، فَلْيُتِمَّ صَوْمَهُ ، فَإنَّمَا أطْعَمَهُ اللهُ وَسَقَاهُ" متفقٌ عَلَيْهِ .