The one who eats, drinks, or has intercourse by mistake does not break his fast
باب أَكْلُ النَّاسِي وَشُرْبُهُ وَجِمَاعُهُ لاَ يُفْطِرُ
Sahih Muslim, Book of The Book of Fasting (view book)
Sahih Muslim 1155
Abu Huraira reported Messenger of Allah ﷺ 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.
وَحَدَّثَنِي عَمْرُو بْنُ مُحَمَّدٍ النَّاقِدُ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ، عَنْ هِشَامٍ الْقُرْدُوسِيِّ، عَنْ مُحَمَّدِ بْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ، - رضى الله عنه - قَالَ قَالَ رَسُولُ اللَّهِ ﷺ " مَنْ نَسِيَ وَهُوَ صَائِمٌ فَأَكَلَ أَوْ شَرِبَ فَلْيُتِمَّ صَوْمَهُ فَإِنَّمَا أَطْعَمَهُ اللَّهُ وَسَقَاهُ " .
Classification
Sahih (Authentic)