Alqamah ibn Wail Kindi reported on the authority of his father that in the times of Allah’s Messenger (SAW) a woman proceeded to offer salah, on her way, a man caught hold of her and assaulted her sexually, satisfying his desire from her. She shouted. He went away. A man passed by her and she said to him that the man had done with her this and that. Then a group of muhajirs passed by and she told them that the man had done with her this and that. They went, got hold of the man who they thought had molested the woman. They brought him to her and she confirmed that he was the one, so they took him to Allah’s Messenger when he commanded that he should be stoned to death, the man who had assaulted the woman stood up and said, ‘0 Messenger of Allah. I was the one who had assaulted her (not he).” Allah’s Messenger (SAW) said (to the woman), “Go away. Indeed, Allah has forgiven you. And, to the man (whom the muhajirs had brought to him) he spoke a kind word, and for the man, who had assaulted her, he gave order to be stoned to death. He said, “He has repented in such a way that if (all) the people of Madinah repented like that then that would have been accepted from them’
--------------------------------------------------------------------------------