Musnad Ahmad 820
It was narrated from al-Hasan bin Sa`d, from his father, that Yuhannas and Safiyyah were two of the captives of the khumus. Safiyyah committed zina with one of the men of the khumus and gave birth to a child who was claimed by both the fornicator and Yuhannas. They referred the dispute to ‘Uthman, who referred them to `Ali bin Abi Talib. ‘Ali said:
I shall pass judgement between them as the Messenger of Allah (ﷺ) passed judgement: the child belongs to (the husband) of the women and the fornicator gets nothing. And he gave them fifty lashes each.
حَدَّثَنَا عَفَّانُ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، أَنْبَأَنَا الْحَجَّاجُ، عَنِ الْحَسَنِ بْنِ سَعْدٍ، عَنْ أَبِيهِ، أَنَّ يُحَنَّسَ، وَصَفِيَّةَ، كَانَا مِنْ سَبْيِ الْخُمُسِ فَزَنَتْ صَفِيَّةُ بِرَجُلٍ مِنْ الْخُمُسِ فَوَلَدَتْ غُلَامًا فَادَّعَاهُ الزَّانِي وَيُحَنَّسُ فَاخْتَصَمَا إِلَى عُثْمَانَ فَرَفَعَهُمَا إِلَى عَلِيِّ بْنِ أَبِي طَالِبٍ فَقَالَ عَلِيٌّ أَقْضِي فِيهِمَا بِقَضَاءِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ وَجَلَدَهُمَا خَمْسِينَ خَمْسِينَ‏.‏