صحيح البخاري Sahih Bukhari كتاب الفرائض The Book of Al-Farad (The Laws of Inheritance)
بَابُ مَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ:

(29) Chapter. Whoever claims to be the son of a person other than his father.

3 hadith
Hadith 6766
حَدَّثَنَا مُسَدَّدٌ ، حَدَّثَنَا خَالِدٌ هُوَ ابْنُ عَبْدِ اللَّهِ ، حَدَّثَنَا خَالِدٌ ، عَنْ أَبِي عُثْمَانَ ، عَنْ سَعْدٍ رَضِيَ اللَّهُ عَنْهُ ، قَالَ : سَمِعْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، يَقُولُ : " مَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ ، وَهُوَ يَعْلَمُ أَنَّهُ غَيْرُ أَبِيهِ ، فَالْجَنَّةُ عَلَيْهِ حَرَامٌ " .
Narrated Sa`d: I heard the Prophet saying, "Whoever claims to be the son of a person other than his father, and he knows that person is not his father, then Paradise will be forbidden for him."
Hadith Reference Sahih Bukhari / The Book of Al-Farad (The Laws of Inheritance) / Hadith: 6766
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 6767
فَذَكَرْتُهُ لِأَبِي بَكْرَةَ فَقَالَ : وَأَنَا سَمِعَتْهُ أُذُنَايَ وَوَعَاهُ قَلْبِي مِنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ .
I mentioned that to Abu Bakra, and he said, "My ears heard that and my heart memorized it from Allah's Apostle.
Hadith Reference Sahih Bukhari / The Book of Al-Farad (The Laws of Inheritance) / Hadith: 6767
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 6768
حَدَّثَنَا أَصْبَغُ بْنُ الْفَرَجِ ، حَدَّثَنَا ابْنُ وَهْبٍ ، أَخْبَرَنِي عَمْرٌو ، عَنْ جَعْفَرِ بْنِ رَبِيعَةَ ، عَنْ عِرَاكٍ ، عَنْ أَبِي هُرَيْرَةَ ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : " لَا تَرْغَبُوا عَنْ آبَائِكُمْ ، فَمَنْ رَغِبَ عَنْ أَبِيهِ فَهُوَ كُفْرٌ " .
Narrated Abu Huraira: The Prophet said, "Do not deny your fathers (i.e. claim to be the sons of persons other than your fathers), and whoever denies his father, is charged with disbelief."
Hadith Reference Sahih Bukhari / The Book of Al-Farad (The Laws of Inheritance) / Hadith: 6768
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة