مشكوة المصابيح Mishkat al-Masabih كتاب الإيمان والنذور The Book of Oaths and Vows
(إِذَا رَأَى عَمَلًا صَالِحًا بَعْدَ الْقَسَمِ فَلْيَنْقُضْهُ وَلْيَفْعَلْهُ)

(If one sees a righteous deed after taking an oath, they should break it and perform the deed)

1 hadith
Hadith 3413
وَعَنْ أَبِي هُرَيْرَةَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «مَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى خَيْرًا مِنْهَا فَلْيُكَفِّرْ عَنْ يَمِينِهِ وليفعل» . رَوَاهُ مُسلم
Abu Huraira reported God’s Messenger as saying, "If anyone swears an oath and considers something else to be better than it he should make atonement for his oath and do that.” Muslim transmitted it.
Hadith Reference Mishkat al-Masabih / The Book of Oaths and Vows / Hadith: 3413
Hadith Grading الألبانی: صَحِيح  |  زبیر علی زئی: صحيح
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «رواه مسلم (1650/12)»