Umar bin Khattab reported,

Umar said, "The Messenger of Allah ﷺ said to me, 'Allah forbids you from swearing by your fathers.'"Umar continued, "By Allah, I have never sworn by them since I heard the Prophet ﷺ say this, neither on my own nor quoting another."

Azami 7083

Sahih

عن عمر قال

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

الأعظمي 7083صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Oaths and vows
Chapter
Faith
Section
Prohibition of swearing by fathers, mothers, and by other than Allah
Numbering
Jami al-Kamil 7083 (2nd edition)
Azami 7083