Abu Hurairah reported,

He heard him say that the Prophet ﷺ said, "When a slave woman commits fornication and her offense is established, let him flog her without rebuking her. If she fornicates again, let him flog her without rebuking her. Then if she fornicates a third time, let him sell her, even for a rope of hair."

Azami 6961

Sahih

عن أبي هريرة

أنه سمعه يقول: قال النبي ﷺ: إذا زنت الأمة فتبين زناها فليجلدها ولا يثرب، ثم إن زنت فليجلدها ولا يثرب، ثم إن زنت الثالثة فليبغها ولو بحبل من شعر.

الأعظمي 6961صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Legal punishments
Chapter
Hadd of zina
Section
Master establishing the legal punishment on his slave by order of the ruler
Numbering
Jami al-Kamil 6961 (2nd edition)
Azami 6961