AbuHurayrah heard the Messenger of Allah ﷺ say when the verse about invoking curses came down: Any woman who brings to her family one who does not belong to it has nothing to do with Allah (i.e. expects no mercy from Allah), and Allah will not bring her into His Paradise. Allah, the Exalted, will veil Himself from any man who disowns his child when he looks at him, and disgrace him in the presence of all creatures, first and last. (Using translation from Abū Dāʾūd 2263)
أَنَّهُ سَمِعَ النَّبِيَّ ﷺ يَقُولُ لَمَّا نَزَلَتْ آيَةُ الْمُلَاعَنَةِ قَالَ النَّبِيُّ ﷺ «أَيُّمَا امْرَأَةٍ دَخَّلَتْ عَلَى قَوْمٍ مَنْ لَيْسَ مِنْهُمْ فَلَيْسَتْ مِنَ اللَّهِ فِي شَيْءٍ وَلَنْ يُدْخِلَهَا اللَّهُ جَنَّتَهُ وَأَيُّمَا رَجُلٍ جَحَدَ وَلَدَهُ وَهُوَ يَنْظُرُ إِلَيْهِ احْتَجَبَ اللَّهُ مِنْهُ وَفَضَحَهُ عَلَى رُءُوسِ الْخَلَائِقِ مِنَ الْأَوَّلِينَ وَالْآخِرِينَ»