Riyad as-Salihin #72 · The Book of Miscellany

Riyad as-SalihinAdi bin Hatim At-Ta'i
Riyad as-Salihin · Book 1 · The Book of Miscellany
Riyad as-Salihin · كتاب 1 · كتاب المقدمات
I heard the Messenger of Allah (صلى الله عليه وسلم) say: "He who has taken an oath (to do something) but found something else better than that (which brings him closer to Allah), then he should do that which is better in piety (and he should expiate for the breaking of oath)". [Muslim] .
الرابع: عن أبي ظريف عدي بن حاتم الطائي رضي الله عنه قال: سمعت رسول الله صلى الله عليه وسلم يقول:
"من حلف على يمين ثم رأى أتقى لله منها فليأت التقوى" ((رواه مسلم)).
Reference : Riyad as-Salihin 72In-book reference : Book 1, Hadith 72