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.