4. An-Nisa · The Women النساء
Never should a believer kill another believer, except by mistake. If anyone kills a believer by mistake he must free one Muslim slave and pay compensation to the victim’s relatives, unless they charitably forgo it; if the victim belonged to a people at war with you but is a believer, then the compensation is only to free a believing slave; if he belonged to a people with whom you have a treaty, then compensation should be handed over to his relatives, and a believing slave set free. Anyone who lacks the means to do this must fast for two consecutive months by way of repentance to God: God is all knowing, all wise.
Never should a believer kill a believer; but (If it so happens) by mistake, (Compensation is due): If one (so) kills a believer, it is ordained that he should free a believing slave, and pay compensation to the deceased's family, unless they remit it freely. If the deceased belonged to a people at war with you, and he was a believer, the freeing of a believing slave (Is enough). If he belonged to a people with whom ye have treaty of Mutual alliance, compensation should be paid to his family, and a believing slave be freed. For those who find this beyond their means, (is prescribed) a fast for two months running: by way of repentance to Allah: for Allah hath all knowledge and all wisdom.
If anyone kills a believer deliberately, the punishment for him is Hell, and there he will remain: God is angry with him, and rejects him, and has prepared a tremendous torment for him.
If a man kills a believer intentionally, his recompense is Hell, to abide therein (For ever): And the wrath and the curse of Allah are upon him, and a dreadful penalty is prepared for him.
Tafsir · Ma'arif al-Qur'an
So, you who believe, be careful when you go to fight in God’s way, and do not say to someone who offers you a greeting of peace, ‘You are not a believer,’ out of desire for the chance gains of this life- God has plenty of gains for you. You yourself were in the same position [once], but God was gracious to you, so be careful: God is fully aware of what you do.
O ye who believe! When ye go abroad in the cause of Allah, investigate carefully, and say not to any one who offers you a salutation: "Thou art none of a believer!" Coveting the perishable goods of this life: with Allah are profits and spoils abundant. Even thus were ye yourselves before, till Allah conferred on you His favours: Therefore carefully investigate. For Allah is well aware of all that ye do.