وَمَا كَانَ لِمُؤۡمِنٍ اَنۡ يَّقۡتُلَ مُؤۡمِنًا اِلَّا خَطَـــًٔا ۚ وَمَنۡ قَتَلَ مُؤۡمِنًا خَطَـــًٔا فَتَحۡرِيۡرُ رَقَبَةٍ مُّؤۡمِنَةٍ وَّدِيَةٌ مُّسَلَّمَةٌ اِلٰٓى اَهۡلِهٖۤ اِلَّاۤ اَنۡ يَّصَّدَّقُوۡا ؕ فَاِنۡ كَانَ مِنۡ قَوۡمٍ عَدُوٍّ لَّـكُمۡ وَهُوَ مُؤۡمِنٌ فَتَحۡرِيۡرُ رَقَبَةٍ مُّؤۡمِنَةٍ ؕ وَاِنۡ كَانَ مِنۡ قَوۡمٍۢ بَيۡنَكُمۡ وَبَيۡنَهُمۡ مِّيۡثَاقٌ فَدِيَةٌ مُّسَلَّمَةٌ اِلٰٓى اَهۡلِهٖ وَ تَحۡرِيۡرُ رَقَبَةٍ مُّؤۡمِنَةٍ ۚ فَمَنۡ لَّمۡ يَجِدۡ فَصِيَامُ شَهۡرَيۡنِ مُتَتَابِعَيۡنِ تَوۡبَةً مِّنَ اللّٰهِ ؕ وَكَانَ اللّٰهُ عَلِيۡمًا حَكِيۡمًا
Wama kana limu/minin anyaqtula mu/minan illa khataan waman qatala mu/minankhataan fatahreeru raqabatin mu/minatin wadiyatunmusallamatun ila ahlihi illa an yassaddaqoofa-in kana min qawmin AAaduwwin lakum wahuwa mu/minun fatahreeruraqabatin mu/minatin wa-in kana min qawmin baynakumwabaynahum meethaqun fadiyatun musallamatun ilaahlihi watahreeru raqabatin mu/minatin faman lam yajid fasiyamushahrayni mutatabiAAayni tawbatan mina Allahi wakanaAllahu AAaleeman hakeema
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 diyah presented to his i.e., the deceased's family is required, unless they give up their right as charity. But if he i.e., the deceased was from a people at war with you and he was a believer - then only 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 one or cannot afford to buy one - then instead, a fast for two months consecutively, seeking acceptance of repentance from Allāh. And Allāh is ever Knowing and Wise.