It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever is killed by mistake, that is, an arrow strikes him by mistake, or he dies from a whip or a stick, that is accidental killing and there is diyah for it. Whoever kills deliberately, there is retaliation for it. And whoever stands in the way of the prescribed punishments, upon him is the curse of Allah, the angels and all the people, and none of his deeds, obligatory or voluntary, will be accepted."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنايات / 16002