Abdullah bin Umar reported,

The Messenger of Allah ﷺ came upon Umar while he was riding with a group and swearing by his father. The Messenger of Allah ﷺ said, "Allah forbids you from swearing by your fathers. Whoever swears, let him swear by Allah or remain silent."

Tirmidhi 1534

Sahih

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

عن ابن عمر

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

الترمذي 1534صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Vows and oaths
Chapter
Disliking swearing by other than Allah
Numbering
Darussalam 1534
Tirmidhi 1534