(35) The Book of Oaths and Vows
كتاب الأيمان والنذور
(16) Chapter: Expiation After Breaking An Oath
(16) باب الْكَفَّارَةِ بَعْدَ الْحِنْثِ ‏‏
Sunan an-Nasa'i 3789 
It was narrated that 'Abdur-Rahman bin Samurah said:
"The Prophet said to me: 'If you swear an oath, and you see something that is better, then do that which is better and offer expiation for your oath.'"
أَخْبَرَنَا زِيَادُ بْنُ أَيُّوبَ، قَالَ حَدَّثَنَا هُشَيْمٌ، قَالَ أَنْبَأَنَا مَنْصُورٌ، وَيُونُسُ، عَنِ الْحَسَنِ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ سَمُرَةَ، قَالَ قَالَ لِي النَّبِيُّ صلى الله عليه وسلم ‏ "‏ إِذَا آلَيْتَ عَلَى يَمِينٍ فَرَأَيْتَ غَيْرَهَا خَيْرًا مِنْهَا فَأْتِ الَّذِي هُوَ خَيْرٌ وَكَفِّرْ عَنْ يَمِينِكَ ‏"‏ ‏.‏
Grade :  Sahih (Darussalam)
Reference : Sunan an-Nasa'i 3789
In-book reference : Book 35, Hadith 29
English translation : Vol. 4, Book 35, Hadith 3820