Abdul-Rahman bin Samura reported,

Abdul-Rahman bin Samura reported that the Prophet ﷺ said to him, "Abdul-Rahman bin Samura, when you swear an oath and then see that something else is better than it, do what is better and make expiation for your oath."Abu Dawud said, "I heard Ahmad allow the expiation to be made before breaking the oath." He cited the wording, "So make expiation for your oath, then do what is better."

Abu Dawud 3278

Sahih

حدثنا يحيى بن خلف حدثنا عبد الأعلى حدثنا سعيد عن قتادة عن الحسن عن عبد الرحمن بن سمرة نحوه قال فكفر عن يمينك ثم ائت الذي هو خير

أبو داود 3278صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Oaths and vows
Chapter
Man who expiates before breaking his oath
Numbering
Darussalam 3278
Abu Dawud 3278