It was narrated that Ibn 'Umar said: "The Messenger of Allah said: “Whoever swears, let him not swear by anything other than Allah.'" The Quraish used to swear by their forefathers, and so he said: "Do not swear by your forefathers”"
SahihSahihSahih - Agreed UponBook 35 · Hadith 4