Sunan Ibn Majah
2110
Sahih+2

It was narrated from 'Aishah that the Messenger of Allah (ﷺ) said:"Whoever takes an oath to cut off the ties of kinship, or to do something that is not right, the fulfillment of his vow is not to do that

SahihAl-Albani
SahihMuhammad Fouad Abd al-Baqi