Umar bin Khattab reported,

The Messenger of Allah ﷺ said, "Allah عز وجل forbids you from swearing by your forefathers."Umar said, "By Allah, I have not sworn by them since I heard the Messenger of Allah ﷺ forbid it, neither stating it on my own nor reporting it from someone else."

Muslim 4254

Sahih

و حدثني أبو الطاهر أحمد بن عمرو بن سرح حدثنا ابن وهب عن يونس ح و حدثني حرملة بن يحيى أخبرنا ابن وهب أخبرني يونس عن ابن شهاب عن سالم بن عبد الله عن أبيه قال سمعت

عمر بن الخطاب يقول

ا قال رسول الله ﷺ إن الله عز وجل ينهاكم أن تحلفوا بآبائكم قال عمر فوالله ما حلفت بها منذ سمعت رسول الله ﷺ نهى عنها ذاكرا ولا آثرا

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