That the Messenger of Allah (ﷺ) said: "Whoever swears about an oath and says: 'If Allah…

Jami` at-Tirmidhi Book 20 Hadith 9

Jami` at-Tirmidhi #1531

The Book on Vows and Oaths 20:9

Narrated Ibn 'Umar:

That the Messenger of Allah (ﷺ) said: "Whoever swears about an oath and says: 'If Allah wills (Insha Allah), then there is no breaking of the oath against him."

Chapter: What Has Been Related About Making Exceptions In Oath

Grade: Sahih (Darussalam)