Sunan al-Nasa'i
The Book of Oaths and Vows — Hadith #3773
أَخْبَرَنَا عَلِيُّ بْنُ حُجْرٍ، عَنْ إِسْمَاعِيلَ، - وَهُوَ ابْنُ جَعْفَرٍ - قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ دِينَارٍ، عَنِ ابْنِ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ كَانَ حَالِفًا فَلاَ يَحْلِفْ إِلاَّ بِاللَّهِ " . وَكَانَتْ قُرَيْشٌ تَحْلِفُ بِآبَائِهَا فَقَالَ " لاَ تَحْلِفُوا بِآبَائِكُمْ " .
“The Messenger of Allah said: ‘Whoever swears, let him not swear by anything other than Allah.'” The Quraish used to swear by their forefathers, and so he said: “Do not swear by your forefathers.”
Chain of Narration (Isnad)