Narrated 'Abd al-Rahman b. Samurah: The Prophet (ﷺ) said to me: 'Abd al-Rahman b. Samurah, when you swear an oath and consider something else to be better than it, do the thing that is beter and make atonement for your oath. Abu Dawud said: I heard Ahmad (b. Hanbal) permitting to make atonement before breaking the oath
Hadith No. 3277
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Sahih Bukhari (6722) Sahih Muslim (1652)