Sahih Bukhari | Volume 8 | Hadith Number 691

Narrated by 'Aisha
The Prophet said, "Whoever vowed to be obedient to Allah, must be obedient to Him; and whoever vowed to be disobedient to Allah, should not be disobedient to Him."