Sunan Abi Dawud, Book 21, Hadith 3268 (USC-MSA)

Narrated Abdullah ibn Amr ibn al-'As: The Messenger of Allah said: An oath or a vow about something over which a human being has no control, and to disobey Allah, and to break ties of relationship is not binding. If anyone takes an oath and then considers something else better than it, he should give it up, and do what is better, for leaving it is its atonement. Abu Dawud said: All sound traditions from the Prophet say: "He should make atonement for his oath," except those versions which are not reliable. Abu Dawud said: I said to Ahmad: Yahya b. Sa'id (al-Qattan) has transmitted this tradition from Yahya b. 'Ubaid Allah. He (Ahmad b. Hanbal) said: But he gave it up after that, and he was competent for doing it. Ahmad said: His (Yahya b. 'Ubaid Allah's) tradition are munkar (rejected) and his father is not known.

حَدَّثَنَا الْمُنْذِرُ بْنُ الْوَلِيدِ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ بَكْرٍ، حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ الأَخْنَسِ، عَنْ عَمْرِو بْنِ شُعَيْبٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏:‏ ‏"‏ لاَ نَذْرَ وَلاَ يَمِينَ فِيمَا لاَ يَمْلِكُ ابْنُ آدَمَ وَلاَ فِي مَعْصِيَةِ اللَّهِ وَلاَ فِي قَطِيعَةِ رَحِمٍ، وَمَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا فَلْيَدَعْهَا وَلْيَأْتِ الَّذِي هُوَ خَيْرٌ، فَإِنَّ تَرْكَهَا كَفَّارَتُهَا ‏"‏ ‏.‏ قَالَ أَبُو دَاوُدَ ‏:‏ الأَحَادِيثُ كُلُّهَا عَنِ النَّبِيِّ صلى الله عليه وسلم ‏:‏ ‏"‏ وَلْيُكَفِّرْ عَنْ يَمِينِهِ ‏"‏ ‏.‏ إِلاَّ فِيمَا لاَ يُعْبَأُ بِهِ ‏.‏ قَالَ أَبُو دَاوُدَ قُلْتُ لأَحْمَدَ ‏:‏ رَوَى يَحْيَى بْنُ سَعِيدٍ عَنْ يَحْيَى بْنِ عُبَيْدِ اللَّهِ فَقَالَ ‏:‏ تَرَكَهُ بَعْدَ ذَلِكَ وَكَانَ أَهْلاً لِذَلِكَ، قَالَ أَحْمَدُ ‏:‏ أَحَادِيثُهُ مَنَاكِيرُ وَأَبُوهُ لاَ يُعْرَفُ ‏.‏

sunnah.com