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