It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that a man performed li'an (mutual cursing) with his wife in the presence of the Prophet (peace and blessings be upon him) and denied the attribution of the child to himself. The Prophet (peace and blessings be upon him) separated the two and handed the child over to the mother.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 5400
Hadith Gradingحکم دارالسلام:إسناده صحيح ، خ : 5315، م :1494.