The Chapters on Legal Punishments 20:2663
'Aishah narrated that the Messenger of Allah(ﷺ) said:
“If a slave woman commits fornication then whip her, and if she commits fornication then whip her, and if she commits fornication then whip her, then sell her even if that is for a rope.”