Al-Qasim bin Muhammad narrates from Sayyidah Aishah (may Allah be pleased with her), the wife of the Prophet (peace and blessings be upon him), that the Messenger of Allah (peace and blessings be upon him) said: "Whoever vows to obey (Allah), let him obey Him; and whoever vows to disobey Allah, let him not disobey Him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 20056