Reference
ID 5681
Collector Muslim ibn al-Hajjaj
Book Sahih Muslim
Chapter The Book of Oaths
Reference (English Book) Book 15, Hadith 4057
Reference (Arabic Book) Book 28, Hadith 4365
Hadith Type Khabar
Matn (English)

'Adi b. Hatim reported Allah's Messenger (may peace be upon him) 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.

Matn (Arabic)

وَحَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ عَبْدِ الْعَزِيزِ بْنِ رُفَيْعٍ، عَنْ تَمِيمِ بْنِ طَرَفَةَ، عَنْ عَدِيِّ بْنِ حَاتِمٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا فَلْيَأْتِ الَّذِي هُوَ خَيْرٌ وَلْيَتْرُكْ يَمِينَهُ ‏"‏ ‏.‏