To anyone reading I am not trying to say this in a hateful way or manner I'm just eager to know.There is capital punishment and other forms of punishment. Why do these even exist because they are so violent and Islam most definitely is a religion of peace. Stoning etc are very violent and when punishing someone for it, it basically takes their life away so they never get a chance to turn back for repentance. Can somebody explain why it is allowes? Also there were narrations where the prophet (pbuh) said stone people or throw them off high buildings. This is really violent and does not show peace. I'm not trying to say in a hateful way I'm just trying to learn that what is the point of punishment and why the need for it because it is not for repentance and the only thing you get out of it is a dead person. Why not just teach them to repent and change ways instead of killing them?
Legal punishment is ordained, not just allowed, in Islam. The reason it is a part of Islam is because Allah says so, and He knows better what measures are effective and what is in our benefit.
ولكم في القصاص حياة يا أولي الألباب لعلكم تتقون
And there is for you in legal retribution [saving of] life, O you [people] of understanding, that you may become righteous.
وعسى أن تكرهوا شيئا وهو خير لكم وعسى أن تحبوا شيئا وهو شر لكم والله يعلم وأنتم لا تعلمون
But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah Knows, while you know not.
People who are given capital punishments do get a chance for repentance, they are not magically, instantly executed upon doing the deed.