But whoever kills a believer intentionally - his recompense is Hell, wherein he will abide eternally, and Allāh has become angry with him and has cursed him and has prepared for him a great punishment.
The Ruling Concerning Killing a Believer by Mistake
Allah states that the believer is not allowed to kill his believing brother under any circumstances. In the Two Sahihs, it is recorded that Ibn Mas`ud said that the Messenger of Allah ﷺ said,
(The blood of a Muslim who testifies that there is no deity worthy of worship except Allah and that I am the Messenger of Allah ﷺ, is sacred, except in three instances. (They are:) life for life, the married adulterer, and whoever reverts from the religion and abandons the Jama`ah (community of the faithful believers).) When one commits any of these three offenses, it is not up to ordinary citizens to kill him or her, because this is the responsibility of the Muslim Leader or his deputy. Allah said,
Linked with earlier verses dealing with fighting and killing, all forms of killing, in the first instance, are eight in number because the person killed is covered by one of the four conditions which follow. Either, he is a Muslim; or, he is a Dhimmi (a free, protected, non-Muslim resident of a Muslim state); or, he is beneficiary of a peace pact and has been assured of the protection of his life, property, honour and religion; or, he is a belligerent disbeliever. Then, killing is of two types: intentional, or accidental. Thus, we see that there are only eight possible forms of killing:
Killing is a heinous and irreversible crime. One who deliberately kills another therefore brings down upon himself the wrath of God. Such an act leaves no scope for atonement. God will reject him, and he will be rewarded with eternal hell fire. Accidental killing, however, is more leniently punished. If one unintentionally kills someone, but then, fully realizing the gravity of the crime, sincerely seeks God’s forgiveness and makes due monetary compensation, one may hope for divine clemency. One positive development arising from having faced up to the enormity of the crime is the desire for self-reform. To this end God has given man His directives. Self-punishment is a starting point and may be achieved by the observance of a continuous fast.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.