it is not for a believer to take a believers life except by mistake and he who kills a believer by mistake should free a slave who is a believer and pay bloodmoney to the victims family unless they forego it as an act of charity. if he belonged to a community hostile to you but was himself a believer then a slave who is a believer should be freed. in case he belonged to a people with whom you have a treaty then give bloodmoney to his family and free a believing slave. but he who has no means should fast for a period of two months continuously to have his sins forgiven by god and god is allknowing and allwise.
وما كان لمؤمن أن يقتل مؤمنا إلا خطأ ومن قتل مؤمنا خطأ فتحرير رقبة مؤمنة ودية مسلمة إلى أهله إلا أن يصدقوا فإن كان من قوم عدو لكم وهو مؤمن فتحرير رقبة مؤمنة وإن كان من قوم بينكم وبينهم ميثاق فدية مسلمة إلى أهله وتحرير رقبة مؤمنة فمن لم يجد فصيام شهرين متتابعين توبة من الله وكان الله عليما حكيما