If anyone is killed. Ibn 'Ubaid in his version said: The Messenger of Allah ﷺ said: If anyone is killed in error (blindly) when people are throwing stones, or by beating with whips, or striking with a stick, it is accidental and the compensation for accidental death is due. But if anyone is killed deliberately, retaliation is due. Ibn 'Ubaid in his version: Retaliation of the man is due. The agreed version then goes: If anyone comes in (between the two parties) to prevent it, Allah's curse and anger will rest on him, and neither supererogatory nor obligatory acts will be accepted from him. The version of the tradition of Sufyan is more perfect. (Using translation from Abū Dāʾūd 4539)
عَنِ النَّبِيِّ ﷺ أَنَّهُ قَالَ مَنْ قُتِلَ فِي عِمِّيَّةٍ فِي رِمِّيَّا تَكُونُ بَيْنَهُمْ بِحِجَارَةٍ أَوْ جَلْدٍ بِالسَّوْطِ أَوْ ضَرْبٍ بِعَصًا فَهُوَ خَطَأٌ عَقْلُهُ عَقْلُ الْخَطَأِ وَمَنْ قُتِلَ عَمْدًا فَهُوَ قَوَدُ يَدِهِ وَمَنْ حَالَ دُونَهُ فَعَلَيْهِ لَعْنَةُ اللهِ وَغَضَبُهُ لَا يُقْبَلُ مِنْهُ صَرْفٌ وَلَا عَدْلٌ هَذَا مُرْسَلٌ