Abu Hurairah reported,

The Prophet ﷺ narrated this hadith, saying that each time she commits the offense, he should administer the punishment prescribed by the Book of Allah without rebuking her. On the fourth occasion, he said that if she repeats it, he should administer the punishment prescribed by the Book of Allah, then sell her, even if only for a rope of hair.

Abu Dawud 4471

Sahih

حدثنا ابن نفيل حدثنا محمد بن سلمة عن محمد بن إسحق عن سعيد بن أبي سعيد المقبري عن أبيه

عن أبي هريرة

عن النبي ﷺ بهذا الحديث قال في كل مرة فليضربها كتاب الله ولا يثرب عليها وقال في الرابعة فإن عادت فليضربها كتاب الله ثم ليبعها ولو بحبل من شعر

أبو داود 4471صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Legal punishments
Chapter
Slave woman who commits adultery and has not been married
Numbering
Darussalam 4471
Abu Dawud 4471