Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:17097Abū al-Ḥasan al-Raffāʾ > ʿUthmān b. Muḥammad b. Bishr > Ismāʿīl al-Qāḍī > Ibn Abū Ūways > Ibn Abū al-Zinād from his father

[Machine] About the jurists from the people of Al-Madina, they used to say that if a male slave or a female slave commits adultery, then each of them should be punished with fifty lashes, and there should be no further punishment for a slave. They also used to say that if someone who is a slave commits a hadd crime, he should not be punished until he is freed, and then the punishment for a free person is applied to him.  

البيهقي:١٧٠٩٧أَخْبَرَنَا أَبُو الْحَسَنِ الرَّفَّاءُ أنبأ عُثْمَانُ بْنُ مُحَمَّدِ بْنِ بِشْرٍ ثنا إِسْمَاعِيلُ الْقَاضِي ثنا ابْنُ أَبِي أُوَيْسٍ ثنا ابْنُ أَبِي الزِّنَادِ عَنْ أَبِيهِ

عَنِ الْفُقَهَاءِ مِنْ أَهْلِ الْمَدِينَةِ كَانُوا يَقُولُونَ إِذَا زَنَى الْعَبْدُ أَوِ الْأَمَةُ فَعَلَى كُلِّ وَاحِدٍ مِنْهُمَا فَعَلَ ذَلِكَ جَلْدُ خَمْسِينَ وَلَا تَغْرِيبَ عَلَى مَمْلُوكٍ وَكَانُوا يَقُولُونَ مَنْ أَصَابَ حَدًّا وَهُوَ مَمْلُوكٌ فَلَمْ يُقَمْ عَلَيْهِ حَتَّى عَتَقَ فَعَلَيْهِ حَدُّ الْمَمْلُوكِ