عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: «مَنْ نَسِيَ وَهُوَ صَائِمٌ، فَأَكَلَ أَوْ شَرِبَ، فَلْيُتِمَّ صَوْمَهُ، فَإِنَّمَا أَطْعَمَهُ اللهُ وَسَقَاهُ».
The Prophet (may Allah's peace and blessings be upon him) clarified that whoever eats or drinks forgetfully while fasting, whether the fast is obligatory or voluntary, should complete his fast and not break it because he did not intend to break the fast; rather, it is sustenance that Allah provided him with, and it is Allah Who fed him and gave him drink.
Download for free and never miss a prayer again