From his father (Ibn 'Umar) that the Prophet (ﷺ) heard 'Umar saying: "By my father, By my father!" So he said: "Verily Allah prohibits you from swearing by your father." So 'Umar said: "By Allah I did not swear by him after that, neither intentionally nor in narrating."
Jami` at-Tirmidhi Book 20, Hadith 11