If a person says اِن شاء الله at the time of taking an oath, he has made an exception (istithna’), and his oath will not be broken under any circumstances.
➊ Abu Hurairah (may Allah be pleased with him) narrated that the Messenger of Allah ﷺ said:
من حلف فقال إن شاء الله لم يحنث
“Whoever says اِن شاء الله when taking an oath, there is no expiation for breaking the oath upon him.”
[Sahih: Irwa al-Ghalil: 2570, Tirmidhi: 1532, Kitab al-Nudhur wa al-Aiman: Bab Ma Ja’a fi al-Istithna’ fi al-Yamin, Ahmad: 309/2, Ibn Majah: 2104, Nasa’i: 3855, Mawarid al-Zam’an: 1185, Hakim: 303/4, Talkhis al-Habir: 167/4, Nasb al-Rayah: 234/3]
➋ Ikrimah (may Allah be pleased with him) narrated that the Messenger of Allah ﷺ swore an oath three times, saying:
والله لأغزون قريشا
“By Allah, I will certainly fight Quraysh.”
Then at the end the Prophet ﷺ said:
اِن شاء الله
“If Allah wills.”
And then he did not fight them.
[Sahih: Sahih Abi Dawud: 2811, Kitab al-Aiman wa al-Nudhur: Bab al-Halif Yastathni Ba’da Ma Yatakallam, Abu Dawud: 3285, Bayhaqi: 48/10]
➌ Sulayman (peace be upon him) said that he would most certainly go to his seventy (70) wives in one night and each one of them would bear a child. Regarding this statement of Sulayman (peace be upon him), the Messenger of Allah ﷺ said:
لو قال إن شاء الله لم يحنث
“Had he said اِن شاء الله, his oath would not have been broken.”
[Bukhari: 3424, 6639, Kitab Ahadith al-Anbiya’: Bab Qawl Allah Ta’ala Wa Wahabna li-Dawud Sulayman]
➍ The Muslims are unanimously agreed (ijma’) on this issue.
[Aridat al-Ahwadhi: 13/7]