He heard the Messenger of Allah ﷺ say, when the verse of mutual cursing was revealed, "Any woman who introduces into a family someone who does not belong to them has no standing with Allah, and Allah will not admit her into His Paradise. Any man who denies his own child while looking right at him, Allah will veil Himself from him and will expose him before the first and the last on the Day of Resurrection."
أخبرنا محمد بن عبد الله بن عبد الحكم قال شعيب قال حدثنا الليث عن ابن الهاد عن عبد الله بن يونس عن سعيد بن أبي سعيد المقبري
أنه سمع رسول الله ﷺ يقول حين نزلت آية الملاعنة أيما امرأة أدخلت على قوم رجلا ليس منهم فليست من الله في شيء ولا يدخلها الله جنته وأيما رجل جحد ولده وهو ينظر إليه احتجب الله عز وجل منه وفضحه على رءوس الأولين والآخرين يوم القيامة
[Its chain is hasan] Abu Dawud narrated it in the Book of Divorce, chapter on the severity of denying paternity, no. 2263, from the hadith of Yazid bin Abdullah bin Had, by this chain. It is also found in al-Kubra, no. 5675. Daraqutni graded it sahih, as did Hakim, who said it meets the criteria of Muslim, 2/202-203, and Dhahabi agreed with him.Abdullah bin Yunus's hadith is hasan, according to the more correct view.