Abdullah bin Umar reported,

The Prophet ﷺ heard Umar saying, "By my father." The Messenger of Allah ﷺ said, "Allah forbids you to swear by your fathers. Whoever among you wishes to swear an oath, let him swear by Allah or remain silent."Umar said, "I never swore by it again after that, neither on my own nor quoting another."

Ahmad 4523

Sahih

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

عن سالم عن أبيه

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

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