Language:
كتاب الطلاق
68  
Divorce
(26)
Chapter: If a husband suspects his paternity to a child.
(26)
باب إِذَا عَرَّضَ بِنَفْىِ الْوَلَدِ
Sahih al-Bukhari 5305

Narrated Abu Huraira:

A man came to the Prophet (ﷺ) and said, "O Allah's Messenger (ﷺ)! A black child has been born for me." The Prophet asked him, "Have you got camels?" The man said, "Yes." The Prophet (ﷺ) asked him, "What color are they?" The man replied, "Red." The Prophet (ﷺ) said, "Is there a grey one among them?' The man replied, "Yes." The Prophet (ﷺ) said, "Whence comes that?" He said, "May be it is because of heredity." The Prophet (ﷺ) said, "May be your latest son has this color because of heredity."

حَدَّثَنَا يَحْيَى بْنُ قَزَعَةَ، حَدَّثَنَا مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَجُلاً، أَتَى النَّبِيَّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ وُلِدَ لِي غُلاَمٌ أَسْوَدُ‏.‏ فَقَالَ ‏"‏ هَلْ لَكَ مِنْ إِبِلٍ ‏"‏‏.‏ قَالَ نَعَمْ‏.‏ قَالَ ‏"‏ مَا أَلْوَانُهَا ‏"‏‏.‏ قَالَ حُمْرٌ‏.‏ قَالَ ‏"‏ هَلْ فِيهَا مِنْ أَوْرَقَ ‏"‏‏.‏ قَالَ نَعَمْ‏.‏ قَالَ ‏"‏ فَأَنَّى ذَلِكَ ‏"‏‏.‏ قَالَ لَعَلَّهُ نَزَعَهُ عِرْقٌ‏.‏ قَالَ ‏"‏ فَلَعَلَّ ابْنَكَ هَذَا نَزَعَهُ ‏"‏‏.‏
Reference : Sahih al-Bukhari 5305
In-book reference : Book 68, Hadith 54
USC-MSA web (English) reference : Vol. 7, Book 63, Hadith 225
  (deprecated numbering scheme)