"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 Messenger of Allah! 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).'" (Using translation from Nasāʾī 3480)
بَيْنَمَا نَحْنُ عِنْدَ رَسُولِ اللهِ ﷺ قَامَ رَجُلٌ فَقَالَ يَا رَسُولَ اللهِ إِنِّي وُلِدَ لِي غُلَامٌ أَسْوَدُ فَقَالَ النَّبِيُّ ﷺ «فَأَنَّى كَانَ ذَلِكَ؟» قَالَ مَا أَدْرِي قَالَ «فَهَلْ لَكَ مِنْ إِبِلٍ؟» قَالَ نَعَمْ قَالَ «فَمَا أَلْوَانُهَا؟» قَالَ حُمْرٌ قَالَ «فَهَلْ فِيهَا جَمَلٌ أَوْرَقُ؟» قَالَ فِيهَا إِبِلٌ وُرْقٌ قَالَ «فَأَنَّى كَانَ ذَلِكَ؟» قَالَ مَا أَدْرِي يَا رَسُولَ اللهِ إِلَّا أَنْ يَكُونَ نَزَعَهُ عِرْقٌ قَالَ «وَهَذَا لَعَلَّهُ نَزَعَهُ عِرْقٌ» فَمِنْ أَجْلِهِ «قَضَى رَسُولُ اللهِ ﷺ هَذَا لَا يَجُوزُ لِرَجُلٍ أَنْ يَنْتَفِيَ مِنْ وَلَدٍ وُلِدَ عَلَى فِرَاشِهِ إِلَّا أَنْ يَزْعُمَ أَنَّهُ رَأَى فَاحِشَةً»