Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:2691Shādhān > Isrāʾīl > Simāk > ʿIkrimah > Ibn ʿAbbās > Lammā Ḥurrimat al-Khamr

[Machine] People said, "O Messenger of Allah, what will be the situation of our companions who have died while they were drinking it?" So, the verse was revealed: "There is no blame upon those who believe and do righteousness for what they have eaten [in the past]." (Quran 5:93) He (the Prophet) said, "And when the qiblah was changed, people said, 'O Messenger of Allah, what will be the situation of our companions who have died while they were praying towards Bait al-Maqdis?' So, the verse was revealed: "And Allah would not let your faith go to waste." (Quran 2:143)  

أحمد:٢٦٩١حَدَّثَنَا شَاذَانُ أَخْبَرَنَا إِسْرَائِيلُ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ لَمَّا حُرِّمَتِ الْخَمْرُ قَالَ

أُنَاسٌ يَا رَسُولَ اللهِ أَصْحَابُنَا الَّذِينَ مَاتُوا وَهُمْ يَشْرَبُونَهَا؟ فَأُنْزِلَتْ {لَيْسَ عَلَى الَّذِينَ آمَنُوا وَعَمِلُوا الصَّالِحَاتِ جُنَاحٌ فِيمَا طَعِمُوا} [المائدة 93] قَالَ وَلَمَّا حُوِّلَتِ الْقِبْلَةُ قَالَ أُنَاسٌ يَا رَسُولَ اللهِ أَصْحَابُنَا الَّذِينَ مَاتُوا وَهُمْ يُصَلُّونَ إِلَى بَيْتِ الْمَقْدِسِ؟ فَأُنْزِلَتْ {وَمَا كَانَ اللهُ لِيُضِيعَ إِيمَانَكُمْ} [البقرة 143]