Al-Kāfi - Volume 7 > Inheritance of the Child of Parents who Condemn Each other (al -Mula‘anah (condemnation))
Hadith #7

7- عِدَّةٌ مِنْ أَصْحَابِنَا عَنْ سَهْلِ بْنِ زِيَادٍ عَنِ ابْنِ مَحْبُوبٍ عَنْ عَلِيِّ بْنِ رِئَابٍ عَنِ الْحَلَبِيِّ قَالَ سَأَلْتُ أَبَا عَبْدِ اللهِ (عَلَيْهِ السَّلام) عَنْ رَجُلٍ لاعَنَ امْرَأَتَهُ وَهِيَ حُبْلَى فَلَمَّا وَضَعَتْ ادَّعَى وَلَدَهَا وَأَقَرَّ بِهِ وَزَعَمَ أَنَّهُ مِنْهُ قَالَ يُرَدُّ إِلَيْهِ وَلَدُهُ وَلا يَرِثُهُ وَلا يُجْلَدُ لأنَّ اللِّعَانَ قَدْ مَضَى.

7. A number of our people have narrated from Sahl ibn Ziyad from ibn Mahbub from Ali ibn Ri’ab from al-Halabiy who has narrated the following: “I once asked abu ‘Abd Allah, ‘Alayhi al-Salam, about the case of a man who forms Mula ‘anah against his wife when she is pregnant. When the child is born, he claims her child with confession and thinks that the child is his child. He (the Imam) said, ‘The child is returned to him but cannot inherit his legacy and he is not whipped because Mula ‘anah has already taken place.’”