Sahih Muslim
The Book of Fasting (Kitab Al-Sawm)
Book Number: 006 / Hadith Number: 2575
Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: If anyone forgets that he is fasting and eats or drinks he should complete his fast, for it is only Allah Who has fed him and given him drink.