Umar bin Khattab reported,

The Prophet ﷺ said, "Allah forbids you from swearing by your fathers."Umar said, "By Allah, I never swore by them after that, neither speaking on my own nor quoting another."

Nasai 3798

Sahih

أخبرنا محمد بن عبد الله بن يزيد وسعيد بن عبد الرحمن واللفظ له قالا حدثنا سفيان عن الزهري عن سالم عن أبيه

عن عمر

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

النسائي 3798صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Oaths and vows
Chapter
Swearing by one's forefathers
Numbering
Darussalam 3798
Nasai 3798