Sahih al-Bukhari, Book 97, Hadith 30 (Bukhari 7119)

Narrated Ibn `Umar:

The Prophet (ﷺ) said, "Do not swear by your fathers; and whoever wants to swear should swear by Allah."