Ali reported: If I impose Hadd on anyone, and he (in course of punishment) dies, I would not mind except in case of a drunkard. If he dies, I would pay indemnity for him because the Messenger of Allah (ﷺ) has laid down no rule for it.
Hadith ReferenceSahih Muslim / The Book of Legal Punishments / Hadith: 1707