Ayesha reported,

The Prophet ﷺ said, "Whoever vows to obey Allah, let him obey Him, and whoever vows to disobey Allah, let him not disobey Him."Hasan bin Ali al-Khallal narrated to us, Abdullah bin Numayr narrated to us from Ubaydullah bin Umar, from Talha bin Abdul-Malik al-Ayli, from Qasim bin Muhammad, from Ayesha, from the Prophet ﷺ, something similar.

Tirmidhi 1526

Sahih

حدثنا قتيبة بن سعيد عن مالك بن أنس عن طلحة بن عبد الملك الأيلي عن القاسم بن محمد

عن عائشة

عن النبي ﷺ قال من نذر أن يطيع الله فليطعه ومن نذر أن يعصي الله فلا يعصه حدثنا الحسن بن علي الخلال حدثنا عبد الله بن نمير عن عبيد الله بن عمر عن طلحة بن عبد الملك الأيلي عن القاسم بن محمد عن عائشة عن النبي ﷺ نحوه

الترمذي 1526صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Vows and oaths
Chapter
Whoever vows to obey Allah, let him obey Him
Numbering
Darussalam 1526
Tirmidhi 1526