Narrated Ibn `Umar: The Prophet (peace be upon him) 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 (peace be upon him) said, “Do not swear by your fathers.”
Sahih al-Bukhari, Vol. 5, Book 63, Hadith 62