Abu Abdul-Rahman Sulami reported,

Ali delivered a sermon and said, "People, carry out the prescribed punishments on your slaves, both those who are married and those who are not. A slave-girl belonging to the Messenger of Allah ﷺ committed fornication, and he ordered me to flog her. When I went to her, I found that she had recently given birth, so I feared that if I flogged her I would kill her," or he said, "she would die. I went to the Messenger of Allah ﷺ and mentioned this to him, and he said, 'You did well.'"

Tirmidhi 1441

Sahih

حدثنا الحسن بن علي الخلال حدثنا أبو داود الطيالسي حدثنا زائدة بن قدامة عن السدي عن سعد بن عبيدة

عن أبي عبد الرحمن السلمي قال

خطب علي فقال يا أيها الناس أقيموا الحدود على أرقائكم من أحصن منهم ومن لم يحصن وإن أمة لرسول الله ﷺ زنت فأمرني أن أجلدها فأتيتها فإذا هي حديثة عهد بنفاس فخشيت إن أنا جلدتها أن أقتلها أو قال تموت فأتيت رسول الله ﷺ فذكرت ذلك له فقال أحسنت

الترمذي 1441صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Legal punishments
Chapter
Carrying out the hadd punishment on slave women
Numbering
Darussalam 1441
Tirmidhi 1441