The Book of Oaths (Kitab Al-Aiman)

Muslim :: Book 15 : Hadith 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).

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star