It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) said: "I heard someone swearing by his father, so he said: 'Indeed, Allah forbids you from swearing by the names of your forefathers. Therefore, when any one of you wants to swear an oath, let him swear by the name of Allah, otherwise let him remain silent.'"
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6288