Abdullah bin Umar reported,

The Messenger of Allah ﷺ came upon Umar bin Khattab in a caravan while Umar was swearing by his father. The Messenger of Allah ﷺ called out to them, "Allah عز وجل forbids you from swearing by your fathers. Whoever swears, let him swear by Allah or remain silent."

Muslim 4257

Sahih

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

عن عبد الله

عن رسول الله ﷺ أنه أدرك عمر بن الخطاب في ركب وعمر يحلف بأبيه فناداهم رسول الله ﷺ ألا إن الله عز وجل ينهاكم أن تحلفوا بآبائكم فمن كان حالفا فليحلف بالله أو ليصمت

مسلم 4257صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Oaths
Chapter
Prohibition of swearing by other than Allah
Numbering
Darussalam 4257
Muslim 4257