Abu Hurairah reported,

The Messenger of Allah ﷺ was asked about a slave woman who commits fornication while not married. He said, "If she commits fornication, flog her. Then if she commits fornication again, flog her. Then if she commits fornication 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."Qanabi said in his version that Ibn Shihab said, "The dafir is a rope."

Muslim 4447

Sahih

حدثنا عبد الله بن مسلمة القعنبي حدثنا مالك ح و حدثنا يحيى بن يحيى واللفظ له قال قرأت على مالك عن ابن شهاب عن عبيد الله بن عبد الله

عن أبي هريرة

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

مسلم 4447صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Legal punishments
Chapter
Stoning of Jews, the people of dhimma, for adultery
Numbering
Darussalam 4447
Muslim 4447