Abu Hurairah and Zayd bin Khalid reported,

The Messenger of Allah ﷺ was asked about a slave woman who commits adultery while not married. He said, "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 this was after the third or the fourth time."

Bukhari 6837-6838

Sahih

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

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

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

البخاري 6837-6838صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Legal punishments
Chapter
If a slave woman commits adultery
Numbering
Darussalam 6837-6838
Bukhari6837 6837-6838