Musnad Ahmad 736
It was narrated from `Ali (رضي الله عنه) that A servant of the Prophet (ﷺ) committed an immoral action and the Prophet (ﷺ)  wanted me to carry out the hadd punishment on her. I went to her and found that [the post partum] bleeding had not yet ended. So I went to him and told him, and he said:
“When her bleeding ends, carry out the hadd punishment on her. Carry out the Hadd punishments on those whom your right hands possess (i.e., slave women).”
حَدَّثَنَا وَكِيعٌ، حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْأَعْلَى الثَّعْلَبِيِّ، عَنْ أَبِي جَمِيلَةَ الطُّهَوِيِّ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ أَنَّ خَادِمًا، لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَحْدَثَتْ فَأَمَرَنِي النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ أُقِيمَ عَلَيْهَا الْحَدَّ فَأَتَيْتُهَا فَوَجَدْتُهَا لَمْ تَجِفَّ مِنْ دَمِهَا فَأَتَيْتُهُ فَأَخْبَرْتُهُ فَقَالَ إِذَا جَفَّتْ مِنْ دَمِهَا فَأَقِمْ عَلَيْهَا الْحَدَّ أَقِيمُوا الْحُدُودَ عَلَى مَا مَلَكَتْ أَيْمَانُكُمْ‏.‏