The Prophet ﷺ said, and Hasan also reported from the Prophet ﷺ, "When one of you is fasting and forgets, eating and drinking, let him complete his fast, for it was only Allah who fed him and gave him drink."
حدثنا هوذة قال حدثنا عوف عن خلاس ومحمد
عن النبي ﷺ وعن الحسن عن النبي ﷺ قال إذا صام أحدكم يوما فنسي فأكل وشرب فليتم صومه فإنما أطعمه الله وسقاه