عَنْ سَالِمٍ عَنْ أَبِيهِ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ سَمِعَ عُمَرَ رَضِيَ اللَّهُ عَنْهُ وَهُوَ يَقُولُ وَأَبِي فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ إِنَّ اللَّهَ يَنْهَاكُمْ أَنْ تَحْلِفُوا بِآبَائِكُمْ فَإِذَا حَلَفَ أَحَدُكُمْ فَلْيَحْلِفْ بِاللَّهِ أَوْ لِيَصْمُتْ قَالَ عُمَرُ رَضِيَ اللَّهُ عَنْهُ فَمَا حَلَفْتُ بِهَا بَعْدُ ذَاكِرًا وَلَا آثِرًا
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that when the Noble Prophet (peace and blessings be upon him) heard Sayyiduna Umar (may Allah be pleased with him) saying, "By my father," the Prophet (peace and blessings be upon him) said: "Indeed, Allah Almighty forbids you from swearing by your forefathers. When anyone swears an oath, let him swear by Allah Almighty, or remain silent." Sayyiduna Umar (may Allah be pleased with him) said: "After that, I never intentionally swore such an oath, nor even while quoting someone else."