Bara bin Azib reported,

Some of the companions of the Prophet ﷺ died while they were still drinking wine. When its prohibition was revealed, some of the companions of the Prophet ﷺ asked, "What about our companions who died while drinking it?" Then the verse was revealed, "There is no blame upon those who believe and do righteous deeds for what they have consumed" [Maidah 5:93].

Tirmidhi 3051

Sahih

حدثنا بذلك بندار حدثنا محمد بن جعفر حدثنا شعبة عن أبي إسحق قال

قال البراء

مات ناس من أصحاب النبي ﷺ وهم يشربون الخمر فلما نزل تحريمها قال ناس من أصحاب النبي ﷺ فكيف بأصحابنا الذين ماتوا وهم يشربونها فنزلت {ليس على الذين آمنوا وعملوا الصالحات جناح فيما طعموا} الآية

الترمذي 3051صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Maidah
Numbering
Darussalam 3051
Tirmidhi 3051