Sahih Bukhari | Volume 8 | Hadith Number 129
Narrated by Ibn 'Umar
That he found 'Umar bin Al-Khattab in a group of people and he was swearing by his father. So Allah's Apostle called them, saying, "Verily! Allah forbids you to swear by your fathers. If one has to take an oath, he should swear by Allah or otherwise keep quiet."