Sunan Abi Dawud 2191
Grading supplied with this record: Hasan (Al-Albani)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ حَلَفَ عَلَى مَعْصِيَةٍ فَلاَ يَمِينَ لَهُ وَمَنْ حَلَفَ عَلَى قَطِيعَةِ رَحِمٍ فَلاَ يَمِينَ لَهُ "
The above tradition has also been transmitted by "Amr bin Shu'aib through a different chain of narrators to the same effect. This version adds "If anyone swears an oath to do an act of disobedience to GOD, his oath is not valid, and if anyone swears an oath to sever relationship, his oath is not valid(i.e., he must not fulfill it)
Full reference and source
Sunan Abi Dawud 2191 In-book : Book 13, Hadith 17 English translation : Book 12, Hadith 2186
View source on Sunnah.com (opens in a new tab)