(17) باب الرَّجُلِ يُكَفِّرُ قَبْلَ أَنْ يَحْنَثَ
Narrated Abu Burdah:
On the authority of his father that the Prophet (ﷺ) said: I swear by Allah that if Allah wills I shall swear on an oath and then consider something else to be better than it without making atonement for my oath and doing the thing that is better. Or he said (according to another version): But doing the thing that is better and making atonement for my oath.
Reference: Sunan Abi Dawud 3276
In-book reference: Book 22, Hadith 35
English translation: Book 21, Hadith 3270