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.
darimi:1271ʿUbaydullāh b. Mūsá > Isrāʾīl > Simāk > ʿIkrimah > Ibn ʿAbbās

when the Prophet (May peace be upon him) turned towards the Ka’bah (in prayer), the people asked : Messenger of Allah (May peace be upon him)! what will happen with those who died while they prayed with their faces towards Jerusalem ? Allah the Exalted, then revealed : “And never would Allah make your faith of no effect.” (Using translation from Abū Dāʾūd 4680)   

الدارمي:١٢٧١أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى عَنْ إِسْرَائِيلَ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

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


See similar narrations below:

Collected by Abū Dāwūd, Tirmidhī, Aḥmad, Ibn Ḥibbān, Ṭabarānī
abudawud:4680Muḥammad b. Sulaymān al-Anbārī And ʿUthmān b. Abū Shaybah al-Maʿná > Wakīʿ > Sufyān > Simāk > ʿIkrimah > Ibn ʿAbbās

when the Prophet (May peace be upon him) turned towards the Ka’bah (in prayer), the people asked : Messenger of Allah (May peace be upon him)! what will happen with those who died while they prayed with their faces towards Jerusalem ? Allah the Exalted, then revealed : “And never would Allah make your faith of no effect.”  

أبو داود:٤٦٨٠حَدَّثَنَا مُحَمَّدُ بْنُ سُلَيْمَانَ الأَنْبَارِيُّ وَعُثْمَانُ بْنُ أَبِي شَيْبَةَ الْمَعْنَى قَالاَ حَدَّثَنَا وَكِيعٌ عَنْ سُفْيَانَ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

لَمَّا تَوَجَّهَ النَّبِيُّ ﷺ إِلَى الْكَعْبَةِ قَالُوا يَا رَسُولَ اللَّهِ فَكَيْفَ الَّذِينَ مَاتُوا وَهُمْ يُصَلُّونَ إِلَى بَيْتِ الْمَقْدِسِ فَأَنْزَلَ اللَّهُ تَعَالَى { وَمَا كَانَ اللَّهُ لِيُضِيعَ إِيمَانَكُمْ }  

tirmidhi:2964Hannād And ʾAbū ʿAmmār > Wakīʿ > Isrāʾīl > Simāk > ʿIkrimah > Ibn ʿAbbās

"When the Prophet ﷺ began facing the Ka'bah they said: 'O Messenger of Allah! How about our brothers who died while they were praying toward Bait Al-Maqdis?' So Allah Most High revealed: Allah would not allow your faith to be wasted. (2:143)"  

Abū ʿĪsá said that this Ḥadīth is Ḥasan-Ṣaḥīḥ.
الترمذي:٢٩٦٤حَدَّثَنَا هَنَّادٌ وَأَبُو عَمَّارٍ قَالاَ حَدَّثَنَا وَكِيعٌ عَنْ إِسْرَائِيلَ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

لَمَّا وُجِّهَ النَّبِيُّ ﷺ إِلَى الْكَعْبَةِ قَالُوا يَا رَسُولَ اللَّهِ كَيْفَ بِإِخْوَانِنَا الَّذِينَ مَاتُوا وَهُمْ يُصَلُّونَ إِلَى بَيْتِ الْمَقْدِسِ فَأَنْزَلَ اللَّهُ (وَمَا كَانَ اللَّهُ لِيُضِيعَ إِيمَانَكُمْ ) الآيَةَ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ
ahmad:2775Khalaf > Isrāʾīl > Simāk > ʿIkrimah > Ibn ʿAbbās

[Machine] When the direction of prayer (Qibla) was changed, it was said, "O Messenger of Allah, what about those who died while facing the direction of Al-Masjid al-Aqsa?" So Allah revealed: "And Allah would not let your faith go to waste" (Quran 2:143).  

أحمد:٢٧٧٥حَدَّثَنَا خَلَفٌ حَدَّثَنَا إِسْرَائِيلُ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

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

ahmad:2964Yaḥyá b. Ādam > Isrāʾīl > Simāk > ʿIkrimah > Ibn ʿAbbās

[Machine] It was said to the Prophet ﷺ when the qibla was changed, what about those who died while praying towards the house of Al-Masjid Al-Aqsa? So Allah, the Blessed and Exalted, revealed: "And Allah would not let your faith go to waste." [Al-Baqarah 143]  

أحمد:٢٩٦٤حَدَّثَنَا يَحْيَى بْنُ آدَمَ حَدَّثَنَا إِسْرَائِيلُ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

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

ahmad:3249Wakīʿ > Isrāʾīl > Simāk b. Ḥarb > ʿIkrimah > Ibn ʿAbbās

when the Prophet (May peace be upon him) turned towards the Ka’bah (in prayer), the people asked : Messenger of Allah (May peace be upon him)! what will happen with those who died while they prayed with their faces towards Jerusalem ? Allah the Exalted, then revealed : “And never would Allah make your faith of no effect.” (Using translation from Abū Dāʾūd 4680)   

أحمد:٣٢٤٩حَدَّثَنَا وَكِيعٌ حَدَّثَنَا إِسْرَائِيلُ عَنْ سِمَاكِ بْنِ حَرْبٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

لَمَّا وُجِّهَ النَّبِيُّ ﷺ إِلَى الْكَعْبَةِ قَالُوا يَا رَسُولَ اللهِ فَكَيْفَ بِمَنْ مَاتَ مِنْ إِخْوَانِنَا قَبْلَ ذَلِكَ الَّذِينَ مَاتُوا وَهُمْ يُصَلُّونَ إِلَى بَيْتِ الْمَقْدِسِ؟ فَأَنْزَلَ اللهُ ﷻ {وَمَا كَانَ اللهُ لِيُضِيعَإِيمَانَكُمْ} [البقرة 143]  

ذِكْرُ تَسْمِيَةِ اللَّهِ جَلَّ وَعَلَا صَلَاةَ مَنْ صَلَّى إِلَى بَيْتِ الْمَقْدِسِ فِي تِلْكَ الْمُدَّةِ إِيمَانًا

ibnhibban:1717Abū Yaʿlá > Abū Khaythamah > Wakīʿ > Isrāʾīl > Simāk > ʿIkrimah > Ibn ʿAbbās

when the Prophet (May peace be upon him) turned towards the Ka’bah (in prayer), the people asked : Messenger of Allah (May peace be upon him)! what will happen with those who died while they prayed with their faces towards Jerusalem ? Allah the Exalted, then revealed : “And never would Allah make your faith of no effect.” (Using translation from Abū Dāʾūd 4680)   

ابن حبّان:١٧١٧أَخْبَرَنَا أَبُو يَعْلَى* قَالَ حَدَّثَنَا أَبُو خَيْثَمَةَ قَالَ حَدَّثَنَا وَكِيعٌ عَنْ إِسْرَائِيلَ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

«لَمَّا وُجِّهَ النَّبِيُّ ﷺ إِلَى الْكَعْبَةِ قَالُوا كَيْفَ بِمَنْ مَاتَ مِنْ إِخْوَانِنَا وَهُمْ يُصَلُّونَ نَحْوَ بَيْتِ الْمَقْدِسِ؟ » فَأَنْزَلَ اللَّهُ جَلَّ وَعَلَا {وَمَا كَانَ اللَّهُ لِيُضِيعَ إِيمَانَكُمْ}  

tabarani:11729ʿAbdullāh b. Muḥammad b. Saʿīd b. Abū Maryam > Muḥammad b. Yūsuf al-Firyābī > Isrāʾīl > Simāk b. Ḥarb > ʿIkrimah > Ibn ʿAbbās

[Machine] They said, "O Messenger of Allah, what do you think about those who died while they were praying towards Al-Masjid al-Aqsa? So Allah revealed, "Allah would not leave your faith to waste. Indeed, Allah is compassionate and merciful towards people."  

الطبراني:١١٧٢٩حَدَّثَنَا عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ سَعِيدِ بْنِ أَبِي مَرْيَمَ ثنا مُحَمَّدُ بْنُ يُوسُفَ الْفِرْيَابِيُّ ثنا إِسْرَائِيلُ عَنْ سِمَاكِ بْنِ حَرْبٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

قَالُوا يَا رَسُولَ اللهِ أَرَأَيْتَ الَّذِينَ مَاتُوا وَهُمْ يُصَلُّونَ إِلَى بَيْتِ الْمَقْدِسِ فَأَنْزَلَ اللهُ ﷻ {مَا كَانَ اللهُ لِيُضِيعَ إِيمَانَكُمْ إِنَّ اللهَ بِالنَّاسِ لرءُوفٌ رَحِيمٌ}