When the verse of liaan was revealed, the Messenger of Allah ﷺ said, "Any woman who attributes to a people a child who does not belong to them has nothing to do with Allah, and He will never admit her into His paradise. And any man who denies his own child while knowing him to be his, Allah will veil Himself from him on the Day of Resurrection and expose him before all the witnesses."
حدثنا أبو بكر بن أبي شيبة حدثنا زيد بن الحباب عن موسى بن عبيدة حدثني يحيى بن حرب عن سعيد بن أبي سعيد المقبري
لما نزلت آية اللعان قال رسول الله ﷺ أيما امرأة ألحقت بقوم من ليس منهم فليست من الله في شيء ولن يدخلها جنته وأيما رجل أنكر ولده وقد عرفه احتجب الله منه يوم القيامة وفضحه على رءوس الأشهاد
[Hasan]. Busiri said, "This chain is daif. Yahya bin Harb is unknown," and Musa bin Ubayda has already been mentioned, no. 251. It has a hasan corroborating witness in Abu Dawud, no. 2263, and elsewhere, and Daraqutni, Hakim, and Dhahabi graded it sahih.