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