Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:1650aZuhayr b. Ḥarb > Marwān b. Muʿāwiyah al-Fazārī > Yazīd b. Kaysān > Abū Ḥāzim > Abū Hurayrah

A person sat late in the night with Allah's Apostle ﷺ, and then came to his family and found that his children had gone to sleep. His wife brought food for him. but he took an oath that he would not eat because of his children (having gone to sleep without food) He then gave precedence (of breaking the vow and then expiating it) and ate the food He then came to Allah s Messenger ﷺ and made mention of that to him, whereupon Messenger of Allah (may peace he upon him) said: He who took an oath and (later on) found something better than that should do that, and expiate for (breaking) his vow.  

مسلم:١٦٥٠aحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ حَدَّثَنَا مَرْوَانُ بْنُ مُعَاوِيَةَ الْفَزَارِيُّ أَخْبَرَنَا يَزِيدُ بْنُ كَيْسَانَ عَنْ أَبِي حَازِمٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

أَعْتَمَ رَجُلٌ عِنْدَ النَّبِيِّ ﷺ ثُمَّ رَجَعَ إِلَى أَهْلِهِ فَوَجَدَ الصِّبْيَةَ قَدْ نَامُوا فَأَتَاهُ أَهْلُهُ بِطَعَامِهِ فَحَلَفَ لاَ يَأْكُلُ مِنْ أَجْلِ صِبْيَتِهِ ثُمَّ بَدَا لَهُ فَأَكَلَ فَأَتَى رَسُولَ اللَّهِ ﷺ فَذَكَرَ ذَلِكَ لَهُ فَقَالَ رَسُولُ اللَّهِ ﷺ مَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا فَلْيَأْتِهَا وَلْيُكَفِّرْ عَنْ يَمِينِهِ  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:19847Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Faḍl b. Ibrāhīm > Aḥmad b. Salamah > ʿAmr b. Zurārah > Marwān b. Muʿāwiyah > Yazīd b. Kaysān al-Yashkurī > Abū Ḥāzim > Abū Hurayrah

A person sat late in the night with Allah's Apostle ﷺ, and then came to his family and found that his children had gone to sleep. His wife brought food for him. but he took an oath that he would not eat because of his children (having gone to sleep without food) He then gave precedence (of breaking the vow and then expiating it) and ate the food He then came to Allah s Messenger ﷺ and made mention of that to him, whereupon Messenger of Allah (may peace he upon him) said: He who took an oath and (later on) found something better than that should do that, and expiate for (breaking) his vow. (Using translation from Muslim 1650a)   

البيهقي:١٩٨٤٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو الْفَضْلِ بْنُ إِبْرَاهِيمَ ثنا أَحْمَدُ بْنُ سَلَمَةَ ثنا عَمْرِو بْنُ زُرَارَةَ ثنا مَرْوَانُ بْنُ مُعَاوِيَةَ ثنا يَزِيدُ بْنُ كَيْسَانَ الْيَشْكُرِيُّ عَنْ أَبِي حَازِمٍ عَنْ أَبِي هُرَيْرَةَ ؓ قَالَ

اعْتَمَّ رَجُلٌ عِنْدَ النَّبِيِّ ﷺ ثُمَّ رَجَعَ إِلَى أَهْلِهِ فَوَجَدَ الصِّبْيَةَ قَدْ نَامُوا فَأَتَاهُ أَهْلُهُ بِطَعَامٍ فَحَلَفَ أَنْ لَا يَأْكُلَ مِنْ أَجْلِ صِبْيَتِهِ ثُمَّ بَدَا لَهُ فَأَكَلَ فَأَتَيَا رَسُولَ اللهِ ﷺ فَذَكَرَا ذَلِكَ لَهُ فَقَالَ رَسُولُ اللهِ ﷺ مَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا فَلْيَأْتِهَا وَلْيُكَفِّرْ عَنْ يَمِينِهِ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ زُهَيْرِ بْنِ حَرْبٍ عَنْ مَرْوَانَ