Sahih al-Bukhari, Book 63, Hadith 61 (Bukhari 3673)

Narrated Ibn `Umar:

The Prophet (ﷺ) said, "If anybody has to take an oath, he should swear only by Allah." The people of Quraish used to swear by their fathers, but the Prophet (ﷺ) said, "Do not swear by your fathers. "