"The Messenger of Allah said to me: 'If you swear an oath, then you see something that is better, do that which is better, and offer expiation for your oath.'"
Sunan an-Nasa'i Book 35, Hadith 31