It was narrated that Ibn 'Umar said:
"The Messenger of Allah said: 'Whoever swears an oath and says: If Allah wills, then he has made an exception.'"