A married adulterer was brought to ‘Ali. He gave him one hundred lashes on Thursday and he stoned him on Friday. It was said to him: You gave him two hadd punishments? He said: I flogged him in accordance with the Book of Allah and I stoned him in accordance with the Sunnah of the Messenger of Allah (ﷺ).
Narrated It was narrated from ‘Ali (رضي الله عنه):
I heard the Messenger of Allah (ﷺ) say: `The Pen has been lifted from three: from the child until he reaches puberty, from the sleeper until he wakes up and from the insane until he regains his sanity.”
A freed slave woman of Sa’eed bin Qais, who was married and had committed an immoral action, was brought to `Ali, he gave her one hundred lashes then he stoned her. Then he said: I flogged her in accordance with the Book of Allah and I stoned her in accordance with the Sunnah of the Messenger of Allah (ﷺ).