"Whoever eats out of forgetfulness while fasting, let him complete his fast, for it is Allah Who has fed him and given him to drink." (Using translation from Ibn Mājah 1673)
قَالَ رَسُولُ اللهِ ﷺ مَنْ نَسِيَ وَهُوَ صَائِمٌ فَأَكَلَ أَوْ شَرِبَ فَلْيُتِمَّ صَوْمَهُ فَإِنَّمَا أَطْعَمَهُ اللهُ وَسَقَاهُ