Abu Hurairah reported,

The Prophet ﷺ said, "Whoever eats or drinks out of forgetfulness has not broken his fast, for it is only a provision that Allah has provided for him."

Tirmidhi 722

Sahih

حدثنا أبو سعيد الأشج حدثنا أبو أسامة عن عوف عن ابن سيرين وخلاس عن أبي هريرة عن النبي ﷺ مثله أو نحوه

الترمذي 722صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
One who is fasting eats or drinks forgetfully
Numbering
Darussalam 722
Tirmidhi 722