Hadithcore
Sahih al-Bukhari, 399
sahih

Narrated Bara' bin `Azib:

Allah's Messenger (ﷺ) prayed facing Baitul-Maqdis for sixteen or seventeen months but he loved to face the Ka`ba (at Mecca) so Allah revealed: "Verily, We have seen the turning of your face to the heaven!" (2:144) So the Prophet (ﷺ) faced the Ka`ba and the fools amongst the people namely "the Jews" said, "What has turned them from their Qibla (Baitul-Maqdis) which they formerly observed"" (Allah revealed): "Say: 'To Allah belongs the East and the West. He guides whom he will to a straight path'." (2:142) A man prayed with the Prophet (facing the Ka`ba) and went out. He saw some of the Ansar praying the `Asr prayer with their faces towards Baitul-Maqdis, he said, "I bear witness that I prayed with Allah's Messenger (ﷺ) facing the Ka`ba." So all the people turned their faces towards the Ka`ba.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ رَجَاءٍ، قَالَ حَدَّثَنَا إِسْرَائِيلُ، عَنْ أَبِي إِسْحَاقَ، عَنِ الْبَرَاءِ بْنِ عَازِبٍ ـ رضى الله عنهما ـ قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم صَلَّى نَحْوَ بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ أَوْ سَبْعَةَ عَشَرَ شَهْرًا، وَكَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُحِبُّ أَنْ يُوَجَّهَ إِلَى الْكَعْبَةِ، فَأَنْزَلَ اللَّهُ ‏{‏قَدْ نَرَى تَقَلُّبَ وَجْهِكَ فِي السَّمَاءِ‏}‏ فَتَوَجَّهَ نَحْوَ الْكَعْبَةِ، وَقَالَ السُّفَهَاءُ مِنَ النَّاسِ ـ وَهُمُ الْيَهُودُ ـ مَا وَلاَّهُمْ عَنْ قِبْلَتِهِمُ الَّتِي كَانُوا عَلَيْهَا ‏{‏قُلْ لِلَّهِ الْمَشْرِقُ وَالْمَغْرِبُ يَهْدِي مَنْ يَشَاءُ إِلَى صِرَاطٍ مُسْتَقِيمٍ‏}‏ فَصَلَّى مَعَ النَّبِيِّ صلى الله عليه وسلم رَجُلٌ ثُمَّ خَرَجَ بَعْدَ مَا صَلَّى، فَمَرَّ عَلَى قَوْمٍ مِنَ الأَنْصَارِ فِي صَلاَةِ الْعَصْرِ نَحْوَ بَيْتِ الْمَقْدِسِ فَقَالَ هُوَ يَشْهَدُ أَنَّهُ صَلَّى مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم، وَأَنَّهُ تَوَجَّهَ نَحْوَ الْكَعْبَةِ‏.‏ فَتَحَرَّفَ الْقَوْمُ حَتَّى تَوَجَّهُوا نَحْوَ الْكَعْبَةِ‏.‏

References2 variants
In-Book Reference
Book 8, Hadith 50
USC-MSA web (English) reference
Vol. 1, Book 8, Hadith 392 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Holy Kaaba is held in high esteem by all Muslims, for it is the Ancient House of Allah and the qiblah towards which they face when they pray; they long to see the Kaaba when they go for Hajj. In this hadith, al-Bara’ ibn ‘Azib (may Allah be pleased with him) narrates that the qiblah towards which the Prophet (blessings and peace of Allah be upon him) faced in his prayer, when he first [came to Madinah], was in the direction of Bayt al-Maqdis, for sixteen or seventeen months. There is no difference of scholarly opinion that that happened in 2 AH. But he was hoping that his qiblah would be changed to the Kaaba. Then Allah revealed the words: {We have certainly seen the turning of your face, [O Muhammad], toward the heaven…} [al-Baqarah 2:144]. In other words, We see you repeatedly turning your face and looking up to heaven; {and We will surely turn you} that is, we will surely grant you and permit you to turn towards; {to a qiblah with which you will be pleased}, that you love and are inclined towards, for the correct purposes that you have in mind, and that are in harmony with the will and wisdom of Allah. So the Prophet (blessings and peace of Allah be upon him) turned towards the Kaaba. The foolish among the people – namely the Jews – said: {“What has turned them away from their qiblah, which they used to face?”} [al-Baqarah 2:142]. They asked this question in astonishment at the reason for the Muslims’ turning away from Bayt al-Maqdis towards the Kaaba, because they had liked it when the Prophet (blessings and peace of Allah be upon him) had turned towards Bayt al-Maqdis, as it was also their qiblah. So when the Prophet (blessings and peace of Allah be upon him) turned towards the Sacred House, they objected to that. But Allah (may He be exalted) responded to them by saying: {Say, “To Allah belongs the east and the west. He guides whom He wills to a straight path”} [al-Baqarah 2:142]. Some of his companions prayed with the Prophet (blessings and peace of Allah be upon him) facing towards the Kaaba, then one of the men who had prayed ‘Asr with him – whose name was ‘Abbad ibn Bishr or ‘Abbad ibn Nahik – went out and passed by a group of the Ansar. He found them praying ‘Asr, facing towards Bayt al-Maqdis, so he said to them: I bear witness that I just prayed with the Messenger of Allah (blessings and peace of Allah be upon him) facing towards Makkah, and that he was facing towards the Kaaba. When they heard him, they turned around towards al-Masjid al-Haram. They did not interrupt their prayer; rather they completed it facing towards the Kaaba. This reflects how quickly they responded to the command of Allah (may He be exalted). This hadith highlights the honourable position of the Prophet (blessings and peace of Allah be upon him) and how dear he was to his Lord (may He be glorified and exalted) as He gave him what he had been hoping for, without him asking for it. It highlights how keen the Sahabah (may Allah be pleased with them) were to adhere to their religion. It indicates that the report of a trustworthy person may be accepted, even if he is only one..
Related hadiths4
Compare isnād across 4 related chains →