Sunan an-Nasa'i, Book 35, Hadith 31 (Nasa'i 3830)

'Abdur-Rahman bin Samurah said:

"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.'"