Abdullah bin Umar reported,

A man performed the mutual oath of condemnation against his wife during the time of the Messenger of Allah ﷺ and disowned her child. The Messenger of Allah ﷺ then separated the two of them and attached the child's lineage to the mother.

Azami 6629

Sahih

عن ابن عمر

أن رجلا لاعن امرأته في زمان رسول الله ﷺ وانتفل من ولدها، ففرق رسول الله ﷺ بينها، وألحق الولد بالمرأة.

الأعظمي 6629صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Lian
Section
Attributing the child to its mother in lian, and that he is called by her name
Numbering
Jami al-Kamil 6629 (2nd edition)
Azami 6629