´Narrated Abu Hurairah:` That the Prophet (ﷺ) said: "Whoever takes an oath, and then he sees that something else is better than it, then he should make atonement for his oath and then do it."
Hadith Referenceسنن ترمذي / كتاب النذور والأيمان عن رسول الله صلى الله عليه وسلم / 1530