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