That the Prophet (ﷺ) said: "There is no vowing in disobedience to Allah, and its atonement is the atonement of an oath."
Jami` at-Tirmidhi Book 20, Hadith 2