"Whoever swears an oath and says: 'If Allah wills', then if he wishes he may go ahead, and if he wishes he may not, without having broken his oath."
Sunan an-Nasa'i Book 35, Hadith 33