4:92
وَ مَا كَانَ لِ مُؤْمِنٍ أَن يَقْتُلَ مُؤْمِنًا إِلَّا خَطَـًٔا وَ مَن قَتَلَ مُؤْمِنًا خَطَـًٔا فَ تَحْرِيرُ رَقَبَةٍ مُّؤْمِنَةٍ وَ دِيَةٌ مُّسَلَّمَةٌ إِلَىٰٓ أَهْلِ هِۦٓ إِلَّآ أَن يَصَّدَّقُ وا۟ فَ إِن كَانَ مِن قَوْمٍ عَدُوٍّ لَّ كُمْ وَ هُوَ مُؤْمِنٌ فَ تَحْرِيرُ رَقَبَةٍ مُّؤْمِنَةٍ وَ إِن كَانَ مِن قَوْمٍۭ بَيْنَ كُمْ وَ بَيْنَ هُم مِّيثَٰقٌ فَ دِيَةٌ مُّسَلَّمَةٌ إِلَىٰٓ أَهْلِ هِۦ وَ تَحْرِيرُ رَقَبَةٍ مُّؤْمِنَةٍ فَ مَن لَّمْ يَجِدْ فَ صِيَامُ شَهْرَيْنِ مُتَتَابِعَيْنِ تَوْبَةً مِّنَ ٱللَّهِ وَ كَانَ ٱللَّهُ عَلِيمًا حَكِيمًا
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 deceased's family [is required] unless they give [up their right as] charity. But if 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 Allah. And Allah is ever Knowing and Wise.
58:4
فَ مَن لَّمْ يَجِدْ فَ صِيَامُ شَهْرَيْنِ مُتَتَابِعَيْنِ مِن قَبْلِ أَن يَتَمَآسَّ ا فَ مَن لَّمْ يَسْتَطِعْ فَ إِطْعَامُ سِتِّينَ مِسْكِينًا ذَٰلِكَ لِ تُؤْمِنُ وا۟ بِ ٱللَّهِ وَ رَسُولِ هِۦ وَ تِلْكَ حُدُودُ ٱللَّهِ وَ لِ لْ كَٰفِرِينَ عَذَابٌ أَلِيمٌ
And he who does not find [a slave] - then a fast for two months consecutively before they touch one another; and he who is unable - then the feeding of sixty poor persons. That is for you to believe [completely] in Allah and His Messenger; and those are the limits [set by] Allah. And for the disbelievers is a painful punishment.