
Narrated Abu Huraira: radi allaho anho
The Prophet Sallallaho alaihey wasallam said, If somebody eats or drinks forgetfully then he should complete his fast, for what he has eaten or drunk, has been given to him by Allah
Sahih Bukhari, The Book of Fasting