Then, if she fornicates a second time, he must carry out the prescribed punishment on her and not reproach her. If she fornicates a third—or even a fourth—time, he must sell her, even for no more than a rope of hair; in other words, he should not keep her, for there is no good in her.
This serves as evidence that a master may administer the hadd to his own slave, whereas no one else may do so. For free persons, the hadd is carried out only by the ruler (imam) or his deputy; even a father has no right to inflict the hadd on his son, for that duty belongs exclusively to the imam or his representative.
Regarding the Prophet’s words, “let him sell her, even for a rope of hair,” someone might ask: What benefit is there in selling her if she has become accustomed—Allah’s refuge is sought—to fornication? We reply that a change of environment may well change her condition; moreover, once he sells her, he will inform the buyer that she is a slave-girl who fornicates, and the purchaser will treat her strictly so as to prevent her from repeating the offense.
4/243 — On the authority of Abu Hurayrah: A man who had been drinking wine was brought to the Prophet ﷺ, who said, “Beat him.” Abu Hurayrah added, “Some of us struck him with our hands, some with their sandals, and some with their garments. When the man left, one of the people said, ‘May Allah disgrace you!’ The Prophet ﷺ said, ‘Do not say that; do not help Satan against him.’” Reported by al-Bukhari.
[Explanation]
The author—may Allah have mercy on him—narrates from Abu Hurayrah, may Allah be pleased with him, who said: “A man who had drunk wine was brought to the Prophet ﷺ …”