Sayyiduna Abu Hurayrah (may Allah be pleased with him) heard the Messenger of Allah (peace and blessings be upon him) say: when the verses of li'an were revealed, the Prophet (peace and blessings be upon him) said: "Any woman who brings into a people a child who is not from them, Allah bears no responsibility for her, and Allah will never admit her into Paradise. And any man who knowingly denies his child, Allah, the Lord of Might, will veil Himself from him and will disgrace him before all creation, the first and the last."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب اللعان / 15333
Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that he heard the Messenger of Allah (peace and blessings be upon him) say the like of it (that is, as a marfu' report from the Prophet). Abdullah bin Yunus said: Sa'id al-Maqburi was narrating this hadith when Muhammad bin Ka'b al-Qurazi said: This has reached me from the Messenger of Allah (peace and blessings be upon him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب اللعان / 15334