[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]