"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."
Sunan Ibn Majah Book 11, Hadith 21