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.”