Jami` at-Tirmidhi 1530
جامع الترمذي#1530SahihNarrated 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
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Ahmad Muhammad ShakirSahih
Al-AlbaniSahih
Bashar Awad MaaroufHasan Sahih
Zubair Ali ZaiSahih Muslim
In-book reference: 20:8