Sunan Ibn Majah, Book 7, Hadith 36 (Ibn Majah 1673)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

"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."