Sunan an-Nasa'i, Book 35, Hadith 22 (Nasa'i 3812)

It was narrated from 'Abdur-Rahman bin Samurah that the Messenger of Allah said:

"If any one of you swears an oath, then he sees something better than it, let him offer expiation for his oath, and look at what is better and do it."