Sunan an-Nasa'i #3784
The Book of Oaths and Vows 35:24
It was narrated from 'Abdur-Rahman bin Samurah that the Prophet said:
"If you swear an oath, then you see something better than it, then offer expiation for your oath, and do that which is better."