Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) narrates this statement of the Noble Prophet (peace and blessings of Allah be upon him): "Whoever, while taking an oath, says 'InshaAllah' (if Allah wills), then he has made an exception."
Hadith Referenceصحیح ابن حبان / كتاب الأيمان / 4339
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «المشكاة» (3424)، «الإرواء» (7571).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرطهما