Sahih al-Bukhari 3836
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا قُتَيْبَةُ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ جَعْفَرٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ أَلاَ مَنْ كَانَ حَالِفًا فَلاَ يَحْلِفْ إِلاَّ بِاللَّهِ ". فَكَانَتْ قُرَيْشٌ تَحْلِفُ بِآبَائِهَا، فَقَالَ " لاَ تَحْلِفُوا بِآبَائِكُمْ "."
Narrated Ibn `Umar:
The Prophet (ﷺ) said, "If anybody has to take an oath, he should swear only by Allah." The people of Quraish used to swear by their fathers, but the Prophet (ﷺ) said, "Do not swear by your fathers. "
Full reference and source
Sahih al-Bukhari 3836 In-book : Book 63, Hadith 62 USC-MSA web (English) : Vol. 5, Book 58, Hadith 177 (deprecated)
View source on Sunnah.com (opens in a new tab)