Saalim reported from his father that the Prophet heard Umar (RA) say,” By my father! By my father!” So, he said, “Know that Allah farbids you to swear on your ancestors.” Umar (RA)then said, “By Allah! I never swore on them after that neither for myself nor on behalf of others.”
[Bukhari 6647, Muslim 1646]