Umar bin Khattab reported,

The Messenger of Allah ﷺ heard him swearing by his father, so the Messenger of Allah ﷺ said, "Allah forbids you to swear by your fathers."Umar said, "I have not sworn by it since, neither speaking on my own behalf nor reporting another's words."

Ibn Majah 2094

Sahih

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

عن عمر

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

ابن ماجه 2094صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Expiations
Chapter
Prohibition of swearing by other than Allah
Numbering
Darussalam 2094
Ibn Majah 2094