(3) باب نَدْبِ مَنْ حَلَفَ يَمِينًا فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا أَنْ يَأْتِيَ الَّذِي هُوَ خَيْرٌ وَيُكَفِّرَ عَنْ يَمِينِهِ
'Adi b. Hatim reported Allah's Messenger (ﷺ) as saying:
He who took an oath, but he found something else better than that, should do that which is better and break his oath. (RU)
Reference (RU): Sahih Muslim 1651 b (RU)
In-book reference (RU): Book 27, Hadith 23 (RU)
USC-MSA web (English) reference(deprecated numbering scheme): Book 15, Hadith 4057 (RU)