Sunan an-Nasa'i 3480
It was narrated that Abu Hurairah said:
"While we were with the Prophet, a man stood up and said: 'O Messenger of Allah, a black boy has been born to me.' The Messenger of Allah said: 'How did that happen?' He said: 'I do not know.' He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray camels among them?' He said: 'There are some gray camels among them.' He said: 'Where do they come from?' He said: 'I do not know, O Allah's Messenger! Perhaps it is hereditary.' He said: 'Perhaps this is also hereditary.' Because of this, the Messenger of Allah decreed the following: 'It is not allowed for a man, to disown a child who was born on his bed, unless he claimed that he had seen an immoral act (Fahishah).'"
أَخْبَرَنَا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ الْمُغِيرَةِ، قَالَ حَدَّثَنَا أَبُو حَيْوَةَ، - حِمْصِيٌّ - قَالَ حَدَّثَنَا شُعَيْبُ بْنُ أَبِي حَمْزَةَ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ بَيْنَمَا نَحْنُ عِنْدَ رَسُولِ اللَّهِ صلى الله عليه وسلم قَامَ رَجُلٌ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي وُلِدَ لِي غُلاَمٌ أَسْوَدُ ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ فَأَنَّى كَانَ ذَلِكَ ‏"‏ ‏.‏ قَالَ مَا أَدْرِي قَالَ ‏"‏ فَهَلْ لَكَ مِنْ إِبِلٍ ‏"‏ ‏.‏ قَالَ نَعَمْ ‏.‏ قَالَ ‏"‏ فَمَا أَلْوَانُهَا ‏"‏ ‏.‏ قَالَ حُمْرٌ ‏.‏ قَالَ ‏"‏ فَهَلْ فِيهَا جَمَلٌ أَوْرَقُ ‏"‏ ‏.‏ قَالَ فِيهَا إِبِلٌ وُرْقٌ ‏.‏ قَالَ ‏"‏ فَأَنَّى كَانَ ذَلِكَ ‏"‏ ‏.‏ قَالَ مَا أَدْرِي يَا رَسُولَ اللَّهِ إِلاَّ أَنْ يَكُونَ نَزَعَهُ عِرْقٌ ‏.‏ قَالَ ‏"‏ وَهَذَا لَعَلَّهُ نَزَعَهُ عِرْقٌ ‏"‏ ‏.‏ فَمِنْ أَجْلِهِ قَضَى رَسُولُ اللَّهِ صلى الله عليه وسلم هَذَا لاَ يَجُوزُ لِرَجُلٍ أَنْ يَنْتَفِيَ مِنْ وَلَدٍ وُلِدَ عَلَى فِرَاشِهِ إِلاَّ أَنْ يَزْعُمَ أَنَّهُ رَأَى فَاحِشَةً ‏.‏