and never is it for a believer to kill a believer except by mistake. and whoever kills a believer by mistake then the freeing of a believing slave and a compensation payment presented to the deceaseds family unless they give charity. but if the deceased was from a people at war with you and he was a believer then the freeing of a believing slave and if he was from a people with whom you have a treaty then a compensation payment presented to his family and the freeing of a believing slave. and whoever does not find then a fast for two months consecutively acceptance of repentance from allah. and allah is ever knowing and wise.
وما كان لمؤمن أن يقتل مؤمنا إلا خطأ ومن قتل مؤمنا خطأ فتحرير رقبة مؤمنة ودية مسلمة إلى أهله إلا أن يصدقوا فإن كان من قوم عدو لكم وهو مؤمن فتحرير رقبة مؤمنة وإن كان من قوم بينكم وبينهم ميثاق فدية مسلمة إلى أهله وتحرير رقبة مؤمنة فمن لم يجد فصيام شهرين متتابعين توبة من الله وكان الله عليما حكيما