حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ عُتْبَةَ، عَنْ أَبِي هُرَيْرَةَ، وَزَيْدِ بْنِ خَالِدٍ الْجُهَنِيِّ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم سُئِلَ عَنِ الأَمَةِ إِذَا زَنَتْ وَلَمْ تُحْصَنْ قَالَ ‏"‏ إِنْ زَنَتْ فَاجْلِدُوهَا ثُمَّ إِنْ زَنَتْ فَاجْلِدُوهَا ثُمَّ إِنْ زَنَتْ فَاجْلِدُوهَا ثُمَّ إِنْ زَنَتْ فَبِيعُوهَا وَلَوْ بِضَفِيرٍ ‏"‏ ‏.‏ قَالَ ابْنُ شِهَابٍ لاَ أَدْرِي فِي الثَّالِثَةِ أَوِ الرَّابِعَةِ وَالضَّفِيرُ الْحَبْلُ ‏.‏

Abu Hurairah and Zaid b. Khalid al-Juhani said: The Messenger of Allah (PBUH) was asked about a slave-woman who commits fornication, and she is not married: If she commits fornication, flog her: if she commits fornication again flog her; if only for a rope of hair (dafir). Ibn Shihab: I do not know whether he (the Prophet) said it is a third or a fourth time. Translation Not Available

Book Ref: Sunan Abi Dawud Book 40 Hadith 4469
Web Ref:  Sunan Abi Dawud Book 39 Hadith 4454