عَنْ اِبْنِ عُمَرَ رَضِيَ اَللَّهُ عَنْهُمَا, { عَنْ رَسُولِ اَللَّهِ ‏- صلى الله عليه وسلم ‏-أَنَّهُ أَدْرَكَ عُمَرَ بْنَ اَلْخَطَّابِ فِي رَكْبٍ, وَعُمَرَ يَحْلِفُ بِأَبِيهِ, فَنَادَاهُمْ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-"أَلَا إِنَّ اَللَّهَ يَنْهَاكُمْ أَنْ تَحْلِفُوا بِآبَائِكُمْ, فَمَنْ كَانَ حَالِفاً فَلْيَحْلِفْ بِاَللَّهِ, أَوْ لِيَصْمُتْ"} مُتَّفَقٌ عَلَيْهِ 1‏ .‏‏1 ‏- صحيح.‏ رواه البخاري ( 6646 )‏، ومسلم ( 1646 )‏ ( 3 )‏.‏
Translation
Abu Dawud has from the narration of Ibn Abbas (RA) (who reported Allah's Messenger (ﷺ) as saying)

"If anyone takes a vow but does not name it, its atonement is the same as that for an oath. If anyone takes a vow to do an act of disobedience, its atonement is the same as that for an oath. If anyone takes a vow which he is unable to fulfill , its atonement is the same as that for an oath." [Its chain of narrators is authentic, but the Hadith scholars held that the strongest view is that it is Mawquf (saying of a Companion)].