Sunan an-Nasa'i #3768
The Book of Oaths and Vows 35:8
It was narrated from Salim, from his father, that he told him from 'Umar:
"The Messenger of Allah 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 it of others."