It was narrated from Ibn 'Umar:
"Whoever swears an oath and says In sha' Allah, will never break his oath."
English reference: Vol. 3, Book 11, Hadith 2106
Arabic reference: Book 11, Hadith 2184
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.