Umar bin Khattab reported,

The Messenger of Allah ﷺ heard me swearing by my father, so he said, "Allah forbids you from swearing by your fathers."Umar said, "By Allah, I never swore by him after that, neither on my own initiative nor quoting another."

Ahmad 241

Sahih

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

عن عمر رضي الله عنه قال

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

أحمد 241صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Umar bin Khattab
Numbering
Darussalam 241
Ahmad 241