The Book on Legal Punishments (Al-Hudud)
كتاب الحدود عن رسول الله صلى الله عليه وسلم
Chapter 22: What Has Been Relates About A Woman Who Is Forced To Commit Adultery
From his father: "A women went out during the time of the Prophet (ﷺ) to go to Salat, but she was caught by a man and he had relations with her, so she screamed and he left. Then a man came across her and she said: 'That man has done this and that to me', then she came across a group of Emigrants (Muhajirin) and she said: 'That man did this and that to me.' They went to get the man she thought had relations with her, and they brought him to her. She said: 'Yes, that's him.' So they brought him to the Messenger of Allah (ﷺ), and when he ordered that he be stoned, the man who had relations with her, said: 'O Messenger of Allah, I am the one who had relations with her.' So he said to her: 'Go, for Allah has forgiven you.' Then he said some nice words to the man (who was brought). And he said to the man who had relations with her: 'Stone him.' Then he said: 'He has repented a repentance that, if the inhabitants of Al-Madinah had repented with, it would have been accepted from them.'"
Chapter 24: What Has Been Related About The Punishment Of The Sodomite
That the Messenger of Allah (ﷺ) said: "Whomever you find doing the actions of the people of Lut then kill the one doing it, and the one it is done to."
Chapter 25: What Has Been Related About The Apostate
That 'Ali burnt some people who apostasized from Islam. This news reached Ibn 'Abbas, so he said: "If it were me I would have killed them according to the statement of Messenger of Allah (ﷺ). The Messenger of Allah (ﷺ) said: 'Whoever changes his religion then kill him.' And I would not have burned them because the Messenger of Allah (ﷺ) said: 'Do not punish with the punishment of Allah.' So this reached 'Ali, and he said: "Ibn 'Abbas has told the truth."
Chapter 26: What Has Been Related About One Who Brandishes A Weapon
That the Prophet (ﷺ) said: "Whoever carries weapons against us, he is not from us."