It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that a man performed li'an during the time of the Messenger of Allah (peace and blessings be upon him), so the Prophet (peace and blessings be upon him) separated the two and attributed the lineage of the child to the mother.