Sahih Muslim 1650 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا فَلْيَأْتِهَا وَلْيُكَفِّرْ عَنْ يَمِينِهِ "
Abu Huraira reported:
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 Allah's Messenger (ﷺ) said: He who took an oath and (later on) found something better than that should do that, and expiate for (breaking) his vow.
Full reference and source
Sahih Muslim 1650 a In-book : Book 27, Hadith 18 USC-MSA web (English) : Book 15, Hadith 4052 (deprecated)
View source on Sunnah.com (opens in a new tab)