Sunan Ibn Majah, Book 11, Hadith 2207 (In-Book) ⓘ
It was narrated from 'Aishah that the Messenger of Allah said: "Whoever vows to obey Allah, let him obey Him, and whoever vows to disobey Allah, let him not disobey Him. "
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ عُبَيْدِ اللَّهِ، عَنْ طَلْحَةَ بْنِ عَبْدِ الْمَلِكِ، عَنِ الْقَاسِمِ بْنِ مُحَمَّدٍ، عَنْ عَائِشَةَ، قَالَتْ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " مَنْ نَذَرَ أَنْ يُطِيعَ اللَّهَ فَلْيُطِعْهُ وَمَنْ نَذَرَ أَنْ يَعْصِيَ اللَّهَ فَلاَ يَعْصِهِ " .
also referenced under: Hadith 2126 (Reference) & Volume 3, Book 11, Hadith 2126 (DarusSalam)