Abdullah bin Abbas reported,

When the Prophet ﷺ turned toward the Kaabah, the people asked, "Messenger of Allah, what about those who died while praying toward Bayt al-Maqdis?"So Allah revealed, "And Allah would never let your faith go to waste" [Baqarah 2:143].

Abu Dawud 4680

Hasan

حدثنا محمد بن سليمان الأنباري وعثمان بن أبي شيبة المعنى قالا حدثنا وكيع عن سفيان عن سماك عن عكرمة

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

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

أبو داود 4680حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Sunnah
Chapter
Evidence for the increase and decrease of faith
Numbering
Darussalam 4680
Abu Dawud 4680