(17) باب كَرَاهِيَةِ التَّطَاوُلِ عَلَى الرَّقِيقِ
Narrated Abu Huraira and Zaid bin Khalid:
The Prophet (ﷺ) said, "If a slave-girl (Ama) commits illegal sexual intercourse, scourge her; if she does it again, scourge her again; if she repeats it, scourge her again." The narrator added that on the third or the fourth offense, the Prophet (ﷺ) said, "Sell her even for a hair rope."
Reference: Sahih al-Bukhari 2555
In-book reference: Book 49, Hadith 39
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 46, Hadith 731