It is narrated from Ibn Umar (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) separated the two who invoked mutual cursing (li'an) and gave the boy to the woman.
Hadith Referenceمسند الإمام الشافعي / كتاب اللعان / 1341