Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "Whoever takes an oath must swear only by Allah."The Quraysh used to swear by their forefathers, so he said, "Do not swear by your forefathers."

Muslim 4259

Sahih

و حدثنا يحيى بن يحيى ويحيى بن أيوب وقتيبة وابن حجر قال يحيى بن يحيى أخبرنا و قال الآخرون حدثنا إسمعيل وهو ابن جعفر عن عبد الله بن دينار أنه سمع

ابن عمر قال

قال رسول الله ﷺ من كان حالفا فلا يحلف إلا بالله وكانت قريش تحلف بآبائها فقال لا تحلفوا بآبائكم

مسلم 4259صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Oaths
Chapter
Prohibition of swearing by other than Allah
Numbering
Darussalam 4259
Muslim 4259