The Prophet ﷺ said, "There is no vow in disobedience, nor in what the son of Adam does not own."Abu Abdul-Rahman said, Ali bin Zayd is weak, and this hadith contains an error. The correct attribution is Imran bin Husayn, and this hadith has indeed been narrated from Imran bin Husayn through another chain.
أخبرني علي بن محمد بن علي قال حدثنا خلف بن تميم قال حدثنا زائدة قال حدثنا علي بن زيد بن جدعان عن الحسن
عن النبي ﷺ قال لا نذر في معصية ولا فيما لا يملك ابن آدم قال أبو عبد الرحمن علي بن زيد ضعيف وهذا الحديث خطأ والصواب عمران بن حصين وقد روي هذا الحديث عن عمران بن حصين من وجه آخر