Musaddad said: The Messenger of Allah (ﷺ) said: A vow does not avert anything (i.e. has no effect against fate).
In-book : Book 22, Hadith 46
English translation : Book 21, Hadith 3281
22. Oaths and Vows (Kitab Al-Aiman Wa Al-Nudhur)
باب النَّهْىِ عَنِ النَّذْرِ