صحيح البخاري Sahih Bukhari كتاب الطلاق The Book of Divorce
بَابُ يَلْحَقُ الْوَلَدُ بِالْمُلاَعِنَةِ:

(35) Chapter. The child is to be given to the lady (accused by her husband for an illegal sexual intercourse).

1 hadith
Hadith 5315
حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ ، حَدَّثَنَا مَالِكٌ ، قَالَ : حَدَّثَنِي نَافِعٌ ، عَنْ ابْنِ عُمَرَ ، " أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَاعَنَ بَيْنَ رَجُلٍ وَامْرَأَتِهِ ، فَانْتَفَى مِنْ وَلَدِهَا ، فَفَرَّقَ بَيْنَهُمَا وَأَلْحَقَ الْوَلَدَ بِالْمَرْأَةِ " .
Narrated Ibn `Umar: The Prophet made a man and his wife carry out Lian, and the husband repudiated her child. So the Prophet got them separated (by divorce) and decided that the child belonged to the mother only.
Hadith Reference Sahih Bukhari / The Book of Divorce / Hadith: 5315
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة