Abu Hurairah and Zayd bin Khalid reported,

The Messenger of Allah ﷺ was asked about a slave-woman who commits adultery while not being married. He replied, "If she commits adultery, flog her. Then if she commits adultery again, flog her. Then if she commits adultery again, flog her. Then sell her, even for a rope of hair."Ibn Shihab said, "I do not know whether it was after the third or the fourth offense."

Azami 6960

Sahih

عن أبي هريرة وزيد بن خالد الجهني

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

الأعظمي 6960صحيح
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 6960 (2nd edition)
Azami 6960