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."
English reference: Vol. 3, Book 11, Hadith 2110
Arabic reference: Book 11, Hadith 2188
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.