The Messenger of Allah ﷺ said, "Whoever vows to disobey Allah, let him not disobey Him."
حدثنا وكيع حدثنا علي بن مبارك عن يحيى بن أبي كثير عن القاسم
قال رسول الله ﷺ من نذر أن يعصي الله فلا يعصه
Its isnad is sahih, it was mentioned previously at 22957 and 23040.