This is another article in the chapter Justice from the classical manual on Sharia called Reliance of the Traveller. The articles are posted one by one in the order they are given in the book.
012.0 THE PENALTY FOR FORNICATION OR SODOMY
012.1 The legal penalty is obligatorily imposed upon anyone who fornicates or commits sodomy (A: provided it is legally established (def: nll.2(0:))) when they;
(a) have reached puberty;
(b) are sane;
(c) and commit the act voluntarily;
no matter whether the person is a Muslim, non-Muslim subject of the Islamic state, or someone who has left Islam.
012.2 If the offender is someone with the capacity to remain chaste, then he or she is stoned to death (def: 0]2.6), someone with the capacity to remain chaste meaning anyone who has had sexual intercourse (A: at least once) with their spouse in a valid marriage, and is free, of age, and sane. A person is not considered to have the capacity to remain chaste if he or she has only had intercourse in a marriage that is invalid, or is prepubescent at the time of marital intercourse, or is someone insane at the time of marital intercourse who subsequently regains their sanity prior to committing adultery.
If the offender is not someone with the capacity to remain chaste, then the penalty consists of being scourged (def: 012.5) one hundred strips and banished to a distance of at least 81 km.l50 miles for :one year.
012.4 Someone who commits fornication is not punished if he says that he did not know it was unlawful, provided he is a new Muslim or grew up in a remote (0: from Islamic scholars) wilderness, though if neither of these is the case, such a person is punished.
012.5 An offender is not scourged in intense heat or bitter cold, or when he is ill and recovery is expected (until he recovers), or in a mosque, or when the offender is a woman who is pregnant, until she gives birth and has recovered from childbed pains. The whip used should be neither new nor old and worn-out, but something in between.
The offender is not stretched out when scourged, or bound (0: as his hands are left loose to fend off blows). or undressed (0: but rather an ankle-length shirt is left upon him or her), and the scourger does not lay the stripes on hard (0: by raising his arm, such that he draws blood). The scourger distributes the blows over various parts of the body, avoiding the vital points and the face. A man is scourged standing; a woman, sitting and covered (0: by a garment wrapped around her). If the offender is emaciated, or sick from an illness not expected to improve, then he or she is scourged with a single date palm frond (0; upon which there are a hundred strips, or fifty. If a hundred. such an offender is struck once with it. and if fifty, then twice), or with the edge of a garment.
012.6 If the penalty is stoning, the offender is stoned even in severe heat or cold, and even if he has an illness from which he is expected to recover. A pregnant woman is not stoned until she gives birth and the child can suffice with the milk of another.