Sunan Ibn Majah, Book 11, Hadith 15 (Ibn Majah 2104)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

'Whoever swears an oath and says In sha' Allah, he will have made an exception."(2)