"Whoever swears an oath, then sees something better than it, let him do that which is better."
Sunan an-Nasa'i Book 35, Hadith 21