BAYHAQI 15367:
from Muḥammad b. Muslim b. Shihāb Yazʿum —
[Machine] He decided concerning a man who denied his wife's child while he was in her womb, then he confessed to it while he was in her womb. When the child was born, he denied him, so Umar ibn al-Khattab ordered him to be lashed eighty times for slandering his lineage, then the child was attributed to him.
البيهقي ١٥٣٦٧:
عن محمد بن مسلم بن شهاب يزعم —
أَنَّهُ قَضَى فِي رَجُلٍ أَنْكَرَ وَلَدَ امْرَأَتِهِ وَهُوَ فِي بَطْنِهَا ثُمَّ اعْتَرَفَ بِهِ وَهُوَ فِي بَطْنِهَا حَتَّى إِذَا وُلِدَ أَنْكَرَهُ فَأَمَرَ بِهِ عُمَرُ بْنُ الْخَطَّابِ ؓ فَجُلِدَ ثَمَانِينَ جَلْدَةً لِفِرْيَتِهِ عَلَيْهَا ثُمَّ أَلْحَقَ بِهِ وَلَدَهَا
hadithunlocked.com