Sahih Muslim 1705 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَحْسَنْتَ "
Abd al-Rahman reported that 'Ali, while delivering the address said:
O people, impose the prescribed punishment upon your slaves, those who are married and those not married, for a slave-woman belonging to Allah's Messenger (ﷺ) had committed adultery, and he committed me to flog her. But she had recently given birth to a child and I was afraid that if I flogged her I might kill her. So I mentioned that to Allah's Apostle (ﷺ) and he said: You have done well.
Full reference and source
Sahih Muslim 1705 a In-book : Book 29, Hadith 53 USC-MSA web (English) : Book 17, Hadith 4224 (deprecated)
View source on Sunnah.com (opens in a new tab)