Sahih Muslim
The Book of Oaths (Kitab Al-Aiman)
Book Number: 015 / Hadith Number: 4053
Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: He who took an oath and then found another thing better than (this) should expiate for the oath (broken) by him and do (the better thing).