2. Ṣalāh (Prayer)

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

2.374 [Machine] The obligation of facing the qibla

٢۔٣٧٤ فَرْضُ اسْتِقْبَالِ الْقِبْلَةِ

nasai-kubra:948Muḥammad b. Ismāʿīl b. Ibrāhīm > Isḥāq / Ibn Yūsuf al-Azraq > Zakariyyā b. Abū Zāʾidah > Abū Isḥāq > al-Barāʾ b. ʿĀzib

"The Messenger of Allah ﷺ came to Al-Madinah and prayed toward Bait Al-Maqdis for sixteen months, then he was commanded to face towards the Ka'bah. A man who had prayed with the Prophet ﷺ passed by some of the Ansar and said: 'I bear witness that the Messenger of Allah ﷺ has been commanded to face towards the Ka'bah' so they turned to face the Ka'bah." (Using translation from Nasāʾī 489)  

الكبرى للنسائي:٩٤٨أَخْبَرَنَا مُحَمَّدُ بْنُ إِسْمَاعِيلَ بْنِ إِبْرَاهِيمَ قَالَ حَدَّثَنَا إِسْحَاقُ يَعْنِي ابْنَ يُوسُفَ الْأَزْرَقَ عَنْ زَكَرِيَّا بْنِ أَبِي زَائِدَةَ عَنْ أَبِي إِسْحَاقَ عَنِ الْبَرَاءِ بْنِ عَازِبٍ قَالَ

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