Sunan an-Nasa'i #3767
The Book of Oaths and Vows 35:7
It was narrated from 'Umar that the Prophet said:
"Allah forbids you to swear by your forefathers." 'Umar said: "By Allah, I never swore by them again, whether saying it for myself or reporting of others."