The Prophet (ﷺ) said: If anyone says when swearing an oath: "If Allah wills," he makes an exception.
Sunan Abi Dawud Book 22, Hadith 20