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