Abdullah bin Abbas reported,

They asked, "Messenger of Allah, what about those who died while they were still drinking wine, before the prohibition of wine was revealed?"Then the verse was revealed, "There is no blame upon those who believe and do righteous deeds for what they have eaten, so long as they fear Allah and believe and do righteous deeds" [Maidah 5:93].

Azami 12286

Hasan

عن ابن عباس قال

قالوا يا رسول الله! أرأيت الذين ماتوا وهم يشربون الخمر، لما نزل تحريم الخمر فنزلت: {ليس على الذين امنوا وعملوا الصلحت جناح فيما طعموا اذا ما اتقوا وامنوا وعملوا الصلحت}.

الأعظمي 12286حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "There is no blame upon those who believe and do righteous deeds for what they have eaten, if they fear Allah and believe and do righteous deeds, then fear Allah and believe, then fear Allah and do good. And Allah loves those who do good."
Numbering
Jami al-Kamil 12286 (2nd edition)
Azami 12286