Hadithcore
Hadith #2115450

'Ali (RAA) narrated, 'I would not blame myself for the death of a man when I inflicted prescribed punishment on him, with the exception of one who drunk Khamr, for if he were to die, I would pay Diyah for him.'

وَعَنْ عَلِيٍّ ‏- رضى الله عنه ‏- قَالَ: { مَا كُنْتُ لِأُقِيمَ عَلَى أَحَدٍ حَدًّا, فَيَمُوتُ, فَأَجِدُ فِي نَفْسِي, إِلَّا شَارِبَ الْخَمْرِ; فَإِنَّهُ لَوْ مَاتَ وَدَيْتُهُ } أَخْرَجَهُ اَلْبُخَارِيُّ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 10, Hadith 54
Arabic/English book reference
Book 10, Hadith 1294