2. Book of Ṣalāh

٢۔ كِتَابُ الصَّلَاةِ

2.30 [Machine] In the conversion of the qibla from Al-Masjid al-Aqsa to the Kaaba

٢۔٣٠ بَابٌ فِي تَحْوِيلِ الْقِبْلَةِ مِنْ بَيْتِ الْمَقْدِسِ إِلَى الْكَعْبَةِ

darimi:1270Yaḥyá b. Ḥassān > Sulaymān b. Bilāl > ʿAbdullāh b. Dīnār > Ibn ʿUmar

[Machine] While people were performing the Fajr prayer in Quba, a man came to them and said, "Verily, the Messenger of Allah ﷺ has been revealed the Quran and he has been commanded to face the Kaaba in prayer, so face towards it." The people's faces were initially directed towards Sham (Syria) but they turned and faced towards the Kaaba.  

الدارمي:١٢٧٠أَخْبَرَنَا يَحْيَى بْنُ حَسَّانَ حَدَّثَنَا سُلَيْمَانُ بْنُ بِلَالٍ عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ قَالَ

بَيْنَمَا النَّاسُ فِي صَلَاةِ الْفَجْرِ فِي قُبَاءٍ إذ جَاءَهُمْ رَجُلٌ فَقَالَ «إِنَّ رَسُولَ اللَّهِ ﷺ أُنْزِلَ عَلَيْهِ الْقُرْآنُ وَأُمِرَ أَنْ يَسْتَقْبِلَ الْكَعْبَةَ فَاسْتَقْبِلُوهَا وَكَانَ وُجهُ النَّاسِ إِلَى الشَّامِ فَاسْتَدَارُوا فَوَجَّهُوا إِلَى الْكَعْبَةِ»  

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]