Sunan an-Nasa'i, Book 35, Hadith 95 (Nasa'i 3947)

It was narrated that Abu Hurairah said:

"The Messenger of Allah said: 'Whoever swears an oath and says: "If Allah wills, then he has made an exception."'"