The Prophet ﷺ said, "There is no vow in disobedience to Allah, nor in what the son of Adam does not possess."
أخبرنا محمد بن منصور قال حدثنا سفيان قال حدثني أيوب قال حدثنا أبو قلابة عن عمه
أن النبي ﷺ قال لا نذر في معصية الله ولا فيما لا يملك ابن آدم
Muslim narrated it in the chapters on Vows, in the chapter "There Is No Fulfillment for a Vow to Disobey Allah or for What a Person Does Not Own," hadith no. 1641, from the hadith of Ayub Sakhtiyani, through this same chain, and it is also found in Kubra, hadith no. 4754.