Abu Hurairah reported,

A man came to the Prophet ﷺ and said, "Messenger of Allah, my wife has given birth to a black boy."The Prophet ﷺ asked, "Do you have any camels?"He replied, "Yes."The Prophet ﷺ asked, "What are their colors?"He said, "Red."The Prophet ﷺ asked, "Is there a dusky one among them?"He answered, "Yes."The Prophet ﷺ asked, "How did that come about?"He said, "Perhaps a distant ancestral strain produced it."The Prophet ﷺ said, "Then perhaps your son was produced by such a strain as well."

Bukhari 5305

Sahih

حدثنا يحيى بن قزعة حدثنا مالك عن ابن شهاب عن سعيد بن المسيب

عن أبي هريرة

أن رجلا أتى النبي ﷺ فقال يا رسول الله ولد لي غلام أسود فقال هل لك من إبل قال نعم قال ما ألوانها قال حمر قال هل فيها من أورق قال نعم قال فأنى ذلك قال لعله نزعه عرق قال فلعل ابنك هذا نزعه

البخاري 5305صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Divorce
Chapter
If he alludes to denying paternity of the child
Numbering
Darussalam 5305
Bukhari 5305