Hadithcore
Sahih al-Bukhari, 40
sahih

Narrated Al-Bara' (bin 'Azib):

When the Prophet (ﷺ) came to Medina, he stayed first with his grandfathers or maternal uncles from Ansar. He offered his prayers facing Baitul-Maqdis (Jerusalem) for sixteen or seventeen months, but he wished that he could pray facing the Ka'ba (at Mecca). The first prayer which he offered facing the Ka'ba was the 'Asr prayer in the company of some people. Then one of those who had offered that prayer with him came out and passed by some people in a mosque who were bowing during their prayers (facing Jerusalem). He said addressing them, "By Allah, I testify that I have prayed with Allah's Messenger (ﷺ) facing Mecca (Ka'ba).' Hearing that, those people changed their direction towards the Ka'ba immediately. Jews and the people of the scriptures used to be pleased to see the Prophet (ﷺ) facing Jerusalem in prayers but when he changed his direction towards the Ka'ba, during the prayers, they disapproved of it. Al-Bara' added, "Before we changed our direction towards the Ka'ba (Mecca) in prayers, some Muslims had died or had been killed and we did not know what to say about them (regarding their prayers.) Allah then revealed: And Allah would never make your faith (prayers) to be lost (i.e. the prayers of those Muslims were valid).' " (2:143).

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

References2 variants
In-Book Reference
Book 2, Hadith 33
USC-MSA web (English) reference
Vol. 1, Book 2, Hadith 40 (deprecated numbering scheme)
Sharh · explanationclick to expand
Religious laws are based on revelation and what Allah (may He be glorified) has enjoined, and the Prophet (blessings and peace of Allah be upon him) followed that. If he found himself inclined towards something, he would not do it unless he was instructed to do it. In this hadith, al-Bara’ ibn ‘Azib (may Allah be pleased with him) narrates that when the Prophet (blessings and peace of Allah be upon him) came to Madinah, he stayed with Banu al-Najjar, because they were his maternal uncles, or his forefathers on the side of his father’s grandfather, Hashim ibn ‘Abd Manaf. In the beginning, when prayer was made obligatory, his qiblah [direction faced in the prayer] was Bayt al-Maqdis [Jerusalem], and he continued to face in that direction for sixteen or seventeen months, but he was hoping that his qiblah would be changed to the Kaaba. Allah (may He be glorified) mentions this feeling of the Prophet (blessings and peace of Allah be upon him) in the verse in which He says: {We have certainly seen the turning of your face, [O Muhammad], toward the heaven, and We will surely turn you to a qiblah with which you will be pleased. So turn your face toward al-Masjid al-Haram} [al-Baqarah 2:144]. Thus He promised that He would turn his face towards the qiblah with which he would be pleased. The first prayer that the Prophet (blessings and peace of Allah be upon him) prayed whilst facing towards the Kaaba was ‘Asr prayer; there is no difference of scholarly opinion concerning the fact that that happened in 2 AH. Some of his companions prayed with him, then one of the men who had prayed with him went out and passed by the people of another mosque. He found them praying, and they were bowing [in the posture of ruku‘], so he said to them: I swear by Allah that I have just prayed with the Messenger of Allah (blessings and peace of Allah be upon him) facing towards the Kaaba in prayer. When they heard him, they believed him and they turned to face towards al-Masjid al-Haram without interrupting their prayer; rather they completed their prayer facing towards the Kaaba. Thus they offered one prayer in two directions: facing towards al-Masjid al-Aqsa [in Jerusalem] and facing towards al-Masjid al-Haram [in Makkah]. The Jews liked the fact that the Prophet (blessings and peace of Allah be upon him) used to face towards Bayt al-Maqdis, because that was their qiblah. When the Prophet (blessings and peace of Allah be upon him) turned to face towards the Sacred House, they did not like that. Then Allah (may He be exalted) revealed concerning that the words: {The foolish among the people will say, ‘What has turned them away from their qiblah, which they used to face?’ Say, ‘To Allah belongs the east and the west. He guides whom He wills to a straight path’} [al-Baqarah 2:142], as is clearly stated in other reports. Some of the Sahabah who had only prayed facing towards Bayt al-Maqdis had died or been killed before the qiblah was changed to the Sacred House. The Prophet (blessings and peace of Allah be upon him) was asked about them, then Allah revealed the words: {Allah would never let your faith go to waste} [al-Baqarah 2:143], referring to their prayers. In this hadith, we see how quickly the Sahabah (may Allah be pleased with them) responded to the commands of Allah (may He be glorified and exalted) and His Messenger (blessings and peace of Allah be upon him). It also indicates that it is prescribed to swear to something in order to confirm it, and that one should respond positively to the one who calls people to Allah and His Messenger..
Related hadiths2
Compare isnād across 2 related chains →