Abdullah bin Umar reported,

The Messenger of Allah ﷺ came upon Umar bin Khattab while he was traveling with a group of riders and swearing by his father. He said, "Allah forbids you to swear by your fathers. Whoever wishes to swear must swear by Allah or remain silent."

Bukhari 6646

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن نافع

عن عبد الله بن عمر رضي الله عنهما

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

البخاري 6646صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
Do not swear by your fathers
Numbering
Darussalam 6646
Bukhari 6646