Narrated Abu Huraira:The Prophet (ﷺ) said, "If somebody eats something forgetfully while he is fasting, then he should complete his fast, for Allah has made him eat and drink
Hadith No. 6669
Sahih al Bukhari