This is another article in the chapter Enormities 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.
p12.1 Allah Most High says:
(1) “Approach not fornication, it is surely an indecency and evil as a way” (Koran 17:32).
(2) “The fornicator and fornicatress, scourge them each a hundred stripes and let not pity for them take you” (Koran 24:2).
(3) “The fornicator shall not wed other than a fornicatress or idolatress. The fornicatress, none shall wed her but a fornicator or idolator. That is unlawful for believers” (Koran 24;3).
(n: The latter verse “was revealed when some poor Muslim emigrants in Medina were considering marrying the polytheists’ prostitutes, who were wealthy, so that the prostitutes could provide for them. One opinion is that the Koranic prohibition concerned these people alone. A second position is that it was a general prohibition, but was superseded by the revelation of the subsequent verse, ‘And marry those of you who are without spouses’ (Koran 24:32).” (Tafsir al-Ja/a/ayn (y77), 457))
p12.2 The Prophet (Allah bless him and give him peace) said,
“Whoever fornicates or drinks wine. Allah takes his faith from him as a man takes a shirt off over his head.”