The hadith is traced back to the Messenger of Allah ﷺ, who said, "Every intoxicant is khamr, and every intoxicant is forbidden. Whoever drinks khamr in this world and dies addicted to it without having repented will not drink it in the Hereafter."Ubayy said, "And in another place..."
حدثنا يونس حدثنا حماد بن زيد عن أيوب عن نافع
رفع الحديث إلى رسول الله ﷺ قال كل مسكر خمر وكل مسكر حرام ومن شرب الخمر في الدنيا فمات وهو مدمنها لم يتب لم يشربها في الآخرة قال أبي وفي موضع آخر
Its isnad is sahih. It consists of two hadiths that have already been mentioned separately several times, the last occurrence being for the first and
for the second.