Mishkat al-Masabih
Mishkat al-Masabih 3564
وَعَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ: يَا أَيُّهَا النَّاسُ أَقِيمُوا عَلَى أَرِقَّائِكُمُ الْحَدَّ مَنْ أُحْصِنَ مِنْهُمْ وَمَنْ لَمْ يُحْصَنْ فَإِنَّ أَمَةً لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ زَنَتْ فَأَمَرَنِي أَنْ أَجْلِدَهَا فَإِذَا هِيَ حَدِيثُ عَهْدٍ بِنِفَاسٍ فَخَشِيتُ إِنْ أَنَا جَلَدْتُهَا أَنْ أَقْتُلَهَا فَذَكَرْتُ ذَلِكَ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: «أَحْسَنْتَ» . رَوَاهُ مُسْلِمٌ. وَفِي رِوَايَةِ أَبِي دَاوُدَ: قَالَ: «دَعْهَا حَتَّى يَنْقَطِعَ دَمُهَا ثُمَّ أَقِمْ عَلَيْهَا الْحَدَّ وَأَقِيمُوا الْحُدُودَ عَلَى مَا مَلَكَتْ أَيْمَانكُم»
Ali, may God be pleased with him, said: People, carry out the prescribed penalty on your enslaved men and women, whether they have been previously married or not. A slave woman belonging to the Messenger of God committed adultery, and he ordered me to flog her. She had only recently given birth, and I feared that if I flogged her I would kill her. I mentioned this to the Prophet, and he said, You did well. Muslim transmitted it. In a version from Abu Dawud, he said: Leave her until her bleeding stops, then carry out the prescribed penalty on her. Carry out the prescribed penalties on those whom your right hands possess.
Translation notes
The Abu Dawud wording is translated separately from the Muslim account, as in the source.