ENOfficial
It was narrated from `Ali (رضي الله عنه) that A slave woman of theirs committed zina and became pregnant `Ali went to the Prophet (ﷺ) and told him. He said: `Leave her until she gives birth, then flog her.”
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، سَمِعْتُ عَبْدَ الْأَعْلَى، يُحَدِّثُ عَنْ أَبِي جَمِيلَةَ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ أَنَّ أَمَةً، لَهُمْ زَنَتْ فَحَمَلَتْ فَأَتَى عَلِيٌّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَأَخْبَرَهُ فَقَالَ لَهُ دَعْهَا حَتَّى تَلِدَ أَوْ تَضَعَ ثُمَّ اجْلِدْهَا.
sunnah.com