It is narrated from Sayyiduna Umar (may Allah be pleased with him) that once the Prophet (peace and blessings of Allah be upon him) heard me swearing by my father. He said: "Allah Almighty has forbidden you from swearing by the names of your forefathers." After that, I never swore such an oath intentionally or even by way of quoting.
Hadith Referenceمسند احمد / مسند الخلفاء الراشدين / 241
Hadith Gradingحکم دارالسلام:إسناده صحيح، خ: 6647، م 1646