When the slave-woman of any of you commits adultery and this (offence of hers) becomes clear, she should be flogged (as the prescribed) punishment, but hurl no reproach at her. If she commits adultery again, she should (again be punished) by flogging, but hurl no reproach upon her. If she commits fornication for the third time and it becomes clear, then he should sell her, even if only for a rope of hair. (Using translation from Muslim 1703a)
قَالَ رَسُولُ اللهِ ﷺ «إِذَا زَنَتْ أَمَةُ أَحَدِكُمْ فَتَبَيَّنَ زِنَاهَا فَلْيَجْلِدْهَا وَلَا يُثَرِّبْ عَلَيْهَا فَإِنْ عَادَتْ فَزَنَتْ فَلْيَجْلِدْهَا وَلَا يُثَرِّبْ عَلَيْهَا فَإِنْ عَادَتْ فَزَنَتْ فَلْيَبِعْهَا وَلَوْ بِحَبْلٍ مِنْ شَعْرٍ»