Maliks Muwatta Book 41, Hadith Number 11.

Section : Stoning.

Malik related to me that he had heard that Uthman ibn Affan was brought a woman who had given birth after six months and he ordered her to be stoned. Ali ibn Abi Talib said to him, “She does not deserve that. Allah, the Blessed, the Exalted, says in His Book, ‘Their carrying and weaning is thirty months,’ (Sura 46 ayat 15) and he said, ‘Mothers suckle their children for two full years for whoever wishes to complete the suckling.’ (Sura 2 ayat 233) Pregnancy can then be six months, so she does not deserve to be stoned.” Uthman ibn Affan sent for her and found that she had already been stoned.

Malik related to me that he asked Ibn Shihab about someone who committed sodomy. Ibn Shihab said, “He is to be stoned, whether or not he is muhsan.”