This, too, follows the example of Muhammad:
There came to him (the Holy Prophet) a woman from Ghamid and said: Allah’s Messenger, I have committed adultery, so purify me. He (the Holy Prophet) turned her away. On the following day she said: Allah’s Messenger, Why do you turn me away? Perhaps, you turn me away as you turned away Ma’iz. By Allah, I have become pregnant. He said: Well, if you insist upon it, then go away until you give birth to (the child). When she was delivered she came with the child (wrapped) in a rag and said: Here is the child whom I have given birth to. He said: Go away and suckle him until you wean him. When she had weaned him, she came to him (the Holy Prophet) with the child who was holding a piece of bread in his hand. She said: Allah’s Apostle, here is he as I have weaned him and he eats food. He (the Holy Prophet) entrusted the child to one of the Muslims and then pronounced punishment. And she was put in a ditch up to her chest and he commanded people and they stoned her. – Sahih Muslim 17.4206.
Sharia Alert. “Somali adulterer stoned to death,” from BBC News, November 6:
Islamists in southern Somalia have stoned a man to death for adultery but spared his pregnant girlfriend until she gives birth.
Abas Hussein Abdirahman, 33, was killed in front of a crowd of some 300 people in the port town of Merka.
An official from the al-Shabab group said the woman would be killed after she has had her baby.
Islamist groups run much of southern Somalia, while the UN-backed government only control parts of the capital.
This is the third time Islamists have stoned a person to death for adultery in the past year.
Al-Shabab official Sheikh Suldan Aala Mohamed said Mr Abdirahman had confessed to adultery before an Islamic court.
“He was screaming and blood was pouring from his head during the stoning. After seven minutes he stopped moving,” an eyewitness told the BBC.
The BBC’s Mohammed Olad Hassan in Mogadishu says that if the woman is also killed, her baby would be given to relatives to look after….