ʿAli ؓ said: If I carried out the Hadd punishment on a man and he died, I would not feel upset, except in the case of one who drank khamr, if (such a man) died, I would pay the diyah (to his family) because the Messenger of Allah ﷺ did not prescribe it (did not specify a particular number of lashes).
عَلِيٌّ مَا كُنْتُ لِأُقِيمَ عَلَى رَجُلٍ حَدًّا فَيَمُوتَ فَأَجِدُ فِي نَفْسِي مِنْهُ إِلا صَاحِبَ الْخَمْرِ فَلَوْ مَاتَ وَدَيْتُهُ وَزَادَ سُفْيَانُ وَذَلِكَ أَنَّ رَسُولَ اللهِ ﷺ لَمْ يَسُنَّهُ