Sayyiduna Ali (may Allah be pleased with him) said: Whoever is having a hadd punishment carried out on him and dies, it is the hadd that killed him; and whoever dies while the hadd is being carried out has no blood money.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنايات / 16116