"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)."
January 1, 1970
https://en.wikiquote.org/wiki/Oaths