Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:4492Muḥammad b. al-Muthanná > Yaḥyá > Sufyān > Abū Isḥāq > al-Barāʾ

We prayed along with the Prophet ﷺ facing Jerusalem for sixteen or seventeen months. Then Allah ordered him to turn his face towards the Qibla (in Mecca):-- "And from whence-so-ever you start forth (for prayers) turn your face in the direction of (the Sacred Mosque of Mecca) Al-Masjid-ul Haram.." (2.149)  

البخاري:٤٤٩٢حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى حَدَّثَنَا يَحْيَى عَنْ سُفْيَانَ حَدَّثَنِي أَبُو إِسْحَاقَ قَالَ سَمِعْتُ الْبَرَاءَ ؓ قَالَ

صَلَّيْنَا مَعَ النَّبِيِّ ﷺ نَحْوَ بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ أَوْ سَبْعَةَ عَشَرَ شَهْرًا ثُمَّ صَرَفَهُ نَحْوَ الْقِبْلَةِ  


See similar narrations below:

Collected by Muslim, Nasāʾī, Aḥmad, Ṭabarānī
muslim:525bMuḥammad b. al-Muthanná And ʾAbū Bakr b. Khalāad > Yaḥyá > Ibn al-Muthanná > Yaḥyá b. Saʿīd > Sufyān > Abū Isḥāq > al-Barāʾ

I heard al-Bara' saying: We prayed with the Messenger of Allah ﷺ (with our faces) towards Bait-ul-Maqdis for sixteen months or seventeen months. Then we were made to change (our direction) towards the Ka'ba.  

مسلم:٥٢٥bحَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى وَأَبُو بَكْرِ بْنُ خَلاَّدٍ جَمِيعًا عَنْ يَحْيَى قَالَ ابْنُ الْمُثَنَّى حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ عَنْ سُفْيَانَ حَدَّثَنِي أَبُو إِسْحَاقَ قَالَ

سَمِعْتُ الْبَرَاءَ يَقُولُ صَلَّيْنَا مَعَ رَسُولِ اللَّهِ ﷺ نَحْوَ بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ شَهْرًا أَوْ سَبْعَةَ عَشَرَ شَهْرًا ثُمَّ صُرِفْنَا نَحْوَ الْكَعْبَةِ  

nasai:488Muḥammad b. Bashhār > Yaḥyá b. Saʿīd > Sufyān > Abū Isḥāq > al-Barāʾ

"We prayed toward Bait Al-Maqdis (Jerusalem) with the Messenger of Allah ﷺ for sixteen or seventeen months - Safwan was not sure - then it was changed to the Qiblah."  

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

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

ahmad:2252Ḥusayn b. ʿAlī > Zāʾidah > Simāk b. Ḥarb > ʿIkrimah > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ and his companions prayed towards the House of Al-Masjid al-Aqsa for sixteen months, then the direction of prayer was changed.  

أحمد:٢٢٥٢حَدَّثَنَا حُسَيْنُ بْنُ عَلِيٍّ عَنْ زَائِدَةَ عَنْ سِمَاكِ بْنِ حَرْبٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

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

ahmad:3270Ḥusayn b. ʿAlī > Zāʾidah > Simāk > ʿIkrimah > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ and his companions prayed towards Al-Masjid Al-Aqsa for sixteen months, then the Qibla (direction of prayer) was changed.  

أحمد:٣٢٧٠حَدَّثَنَا حُسَيْنُ بْنُ عَلِيٍّ عَنْ زَائِدَةَ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

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

ahmad:18539Yaḥyá > Sufyān > Abū Isḥāq > al-Barāʾ

"We prayed toward Bait Al-Maqdis (Jerusalem) with the Messenger of Allah ﷺ for sixteen or seventeen months - Safwan was not sure - then it was changed to the Qiblah." (Using translation from Nasāʾī 488)   

أحمد:١٨٥٣٩حَدَّثَنَا يَحْيَى عَنْ سُفْيَانَ حَدَّثَنِي أَبُو إِسْحَاقَ قَالَ سَمِعْتُ الْبَرَاءَ قَالَ

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

tabarani:11751Muḥammad b. al-Naḍr al-Azdī > Muʿāwiyah b. ʿAmr > Zāʾidah > Simāk b. Ḥarb > ʿIkrimah > Ibn ʿAbbās

[Machine] The Prophet ﷺ and those with him prayed towards the direction of Jerusalem for about sixteen months, then the qibla (direction of prayer) was changed.  

الطبراني:١١٧٥١حَدَّثَنَا مُحَمَّدُ بْنُ النَّضْرِ الْأَزْدِيُّ ثنا مُعَاوِيَةُ بْنُ عَمْرٍو ثنا زَائِدَةُ عَنْ سِمَاكِ بْنِ حَرْبٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

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