"A woman went out to pray at the time of the Prophet, and she was met by a man who attacked her and had his way with her. She screamed and he went away. Then another man passed by and she said: “This man did such and such to me.” A group of the Muhājirīn came by, and she said: “That man did such and such to me.” They caught the man who she thought was the one who had attacked her, and brought him, and she said: “Yes, this is the one.” They brought him to the Messenger of Allah, and when he issued orders concerning him, the one who had attacked her, stood up and said: “O Messenger of Allah, I am the one who attacked her.” He said to her: “Go, for Allah has forgiven you, and he said kind words to the man. [...] And he said concerning the man who had attacked her: “Stone him.” And he said: “He has repented in such a manner that if the people of Al-Madīnah repented like this, it would be accepted from them."
January 1, 1970
https://en.wikiquote.org/wiki/Rape_in_Islamic_law