Hadith.1893 - Al-Halabi narrated from Abu Abdullah عليه السلام that he was asked about a man who forgot and ate or drank, then remembered.
Imam عليه السلام said: "His fast is not broken; it is something that Allah سبحانه وتعالى has provided for him. Let him complete his fast."