I heard the Messenger of Allah ﷺ say: “Allah, may He be glorified and exalted, forbids you to swear by your fathers,ʿ 'Umar said: By Allah, I never swore by them since I heard the Messenger of Allah ﷺ forbid it, and I never uttered (such words) whether I was swearing an oath or describing someone else doing so.
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ إِنَّ اللهَ ﷻ يَنْهَاكُمْ أَنْ تَحْلِفُوا بِآبَائِكُمْ قَالَ عُمَرُ فَوَاللهِ مَا حَلَفْتُ بِهَا مُنْذُ سَمِعْتُ رَسُولَ اللهِ ﷺ نَهَى عَنْهَا وَلا تَكَلَّمْتُ بِهَا ذَاكِرًا وَلا آثِرًا