Musnad Ahmad 1231
Grading supplied with this record: Hasan because of corroborating evidence; this is a Da'if isnad]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated from "Ali bin Abi Talib (رضي الله عنه) that
A slave woman of the Prophet (ﷺ) gave birth to an illegitimate child. The Prophet (ﷺ) sent me to carry out the hadd punishment, but I found that her postpartum bleeding had not stopped. So I went back to the Prophet (ﷺ) and told him, and he said to me: “When her postpartum bleeding stops, give her the hadd punishment of flogging.” Then he said: “Carry out the hadd punishment on those whom your right hands possess.”
Full reference and source
Musnad Ahmad 1231 Arabic/English book : Book 5, Hadith 1231
View source on Sunnah.com (opens in a new tab)