Sayyiduna Abdullah bin Umar (may Allah be pleased with them) narrates: The Noble Prophet (peace and blessings be upon him) said: "Whoever swears an oath and says 'InshaAllah' (if Allah wills), he is not considered to have broken his oath."
Hadith Referenceصحیح ابن حبان / كتاب الأيمان / 4340
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح