"The woman and the man guilty of fornication, flog each of them with a hundred stripes." This applies to free people if they are not muhsan (previously married or in a state of valid marriage); if they are both muhsan, they are to be stoned.
Muhammad said: Whoever reads "al-zaniyah" in the nominative case (raf'), its interpretation is that of an initial subject (mubtada'). Al-Hasan said: The ruling of stoning was in the mushaf of Ubayy ibn Ka'b, and it is also in our mushaf, in Surat al-Ma'idah, in His saying: "Verily, We did send down the Torah; therein was guidance and light, by which the prophets who submitted themselves to Allah's will, judged."
﴿الزَّانِيَةُ وَالزَّانِي فَاجْلِدُوا كُلَّ وَاحِدٍ مِنْهُمَا مائَة جلدَة﴾ هَذَا فِي الْأَحْرَارِ إِذْا لَمْ يَكُونَا مُحْصَنَيْنِ؛ فَإِنْ كَانَا مُحْصَنَيْنِ رُجِمَا.
قَالَ مُحَمَّدٌ: مَنْ قَرَأَ (الزَّانِيَة) بِالرَّفْعِ فَتَأْوِيلُهُ الِابْتِدَاءُ. قَالَ الْحَسَنُ: وَالرَّجْمُ فِي مُصْحَفِ أُبَيِّ بْنِ كَعْبٍ، وَهُوَ فِي مُصْحَفِنَا أَيْضًا فِي سُوْرَةِ الْمَائِدَةِ فِي قَوْلِهِ: (إِنَّا أَنْزَلْنَا التَّوْرَاةَ فِيهَا هُدًى وَنُورٌ يَحْكُمُ بِهَا النَّبِيُّونَ الَّذِينَ أَسْلَمُوا