Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever swears an oath and then sees that something else is better than it, let him make expiation for his oath and do what is better."

Azami 12857

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: من حلف بيمين، فرأى غيرها خيرا منها، فليكفر عن يمينه، وليفعل الذي هو خير.

الأعظمي 12857صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Nur
Section
His saying, "And let not those of virtue among you and wealth swear not to give to their relatives and the needy and the emigrants for the cause of Allah. And let them pardon and overlook. Would you not like that Allah should forgive you? And Allah is Forgiving and Merciful."
Numbering
Jami al-Kamil 12857 (2nd edition)
Azami 12857