[Machine] The Prophet ﷺ said: "Whoever deliberately kills someone, it is the responsibility of the relatives of the victim to decide whether to kill the perpetrator or to accept blood money. The blood money is thirty camels, thirty cows, and forty young sheep. This is the compensation for intentional murder. Whatever agreement they come to is valid and binding. This is to ensure fairness. The Messenger of Allah ﷺ also said: "The intellect of the one who acts like a madman becomes firm, just like the intellect of a sane person. However, the one who acts like a madman should not be killed. This is because the devil may influence people and cause them to act foolishly, without anger or carrying a weapon."
أَنَّ النَّبِيَّ ﷺ قَالَ مَنْ قَتَلَ مُتَعَمِّدًا دُفِعَ إِلَى أَوْلِيَاءِ الْمَقْتُولِ فَإِنْ شَاءُوا قَتَلُوهُ وَإِنْ شَاءُوا أَخَذُوا الدِّيَةَ وَهِيَ ثَلَاثُونَ حِقَّةً وَثَلَاثُونَ جَذَعَةً وَأَرْبَعُونَ خَلِفَةً وَذَلِكَ عَقْلُ الْعَمْدِ وَمَا صُولِحُوا عَلَيْهِ فَهُوَ لَهُمْ وَذَلِكَ تَشْدِيدُ الْعَقْلِ وَأَنَّ رَسُولَ اللهِ ﷺ قَالَ عَقْلُ شِبْهِ الْعَمْدِ مُغَلَّظَةٌ مِثْلُ عَقْلِ الْعَمْدِ وَلَا يُقْتَلُ صَاحِبُهُ وَذَلِكَ أَنْ يَنْزُوَ الشَّيْطَانُ بَيْنَ النَّاسِ فَيَكُونَ رِمِّيَّا فِي عِمِّيَّا فِي غَيْرِ ضَغِينَةٍ وَلَا حَمْلِ سِلَاحٍ