Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) separated the husband and wife who engaged in li'an, and gave the child to his mother.
Hadith Referenceسنن دارمي / من كتاب النكاح / 2269
Hadith Gradingتحقیق (حسین سلیم أسد الدارانی):إسناده صحيح وهو عند مالك في الطلاق، [مكتبه الشامله نمبر: 2278]
Hadith Takhrijاس روایت کی سند صحیح اور حدیث متفق علیہ ہے۔ دیکھئے: [بخاري 5315] ، [مسلم 1493] ، [أبوداؤد 2259] ، [ترمذي 1203] ، [نسائي 3477] ، [ابن ماجه 2069] ، [أبويعلی 5772] ، [ابن حبان 4288]
Brief Explanation
(Commentary on Hadith 2268)
From this hadith, it is understood that if a man accuses his wife of adultery, then after the process of li'an (mutual cursing), separation will take place between them. And if a child is born, he will be handed over to the mother; he will not be attributed to the father. He will inherit from his mother, not from his father.