Sahih al-Bukhari 7401
Book 97: Oneness, Uniqueness of Allah (Tawheed) · Narrated by Ibn `Umar
Arabic
حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا وَرْقَاءُ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم " لاَ تَحْلِفُوا بِآبَائِكُمْ، وَمَنْ كَانَ حَالِفًا فَلْيَحْلِفْ بِاللَّهِ ".
English translation
Narrated Ibn `Umar:The Prophet (ﷺ) said, "Do not swear by your fathers; and whoever wants to swear should swear by Allah
Reference: Sahih al-Bukhari 7401, Book of Oneness, Uniqueness of Allah (Tawheed). English translation by Dr. Muhammad Muhsin Khan.