Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever takes 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 7102

Sahih

عن أبي هريرة

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

الأعظمي 7102صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Oaths and vows
Chapter
Faith
Section
Exception in oaths
Numbering
Jami al-Kamil 7102 (2nd edition)
Azami 7102