Nafi' reported on the authority of Ibn Umar (Allah be pleased with them) that a person invoked curse on the wife during the lifetime of Allah s Messenger (ﷺ), so he effected separation between them and traced the lineage of the son to his mother.
Sahih Muslim Book 19, Hadith 10