Authentic
hadith of Sahih al-Bukhari
Sahih al-Bukhari 6719
حَدَّثَنَا أَبُو النُّعْمَانِ، حَدَّثَنَا حَمَّادٌ، وَقَالَ، " إِلاَّ كَفَّرْتُ يَمِينِي، وَأَتَيْتُ الَّذِي هُوَ خَيْرٌ ". أَوْ " أَتَيْتُ الَّذِي هُوَ خَيْرٌ، وَكَفَّرْتُ ".
Narrated Hammad:
the same narration above (i.e. 709), "I make expiation for my dissolved oath, and I do what is better, or do what is better and make expiation."
Reported by Al-Bukhari (No. 6719).