(12) بَابُ مَنْ شَبَّهَ أَصْلاً مَعْلُومًا بِأَصْلٍ مُبَيَّنٍ قَدْ بَيَّنَ اللَّهُ حُكْمَهُمَا، لِيُفْهِمَ السَّائِلَ
Narrated Abu Huraira:
A bedouin came to Allah's Messenger (ﷺ) and said, "My wife has delivered a black boy, and I suspect that he is not my child." Allah's Messenger (ﷺ) said to him, "Have you got camels?" The bedouin said, "Yes." The Prophet said, "What color are they?" The bedouin said, "They are red." The Prophet (ﷺ) said, "Are any of them Grey?" He said, "There are Grey ones among them." The Prophet (ﷺ) said, "Whence do you think this color came to them?" The bedouin said, "O Allah's Messenger (ﷺ)! It resulted from hereditary disposition." The Prophet (ﷺ) said, "And this (i.e., your child) has inherited his color from his ancestors." The Prophet (ﷺ) did not allow him to deny his paternity of the child.
Reference: Sahih al-Bukhari 7314
In-book reference: Book 96, Hadith 45
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 92, Hadith 417