صَلَّى قِبَلَ بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ شَهْرًا، أَوْ سَبْعَةَ عَشَرَ شَهْرًا، وَكَانَ يُعْجِبُهُ أَنْ تَكُونَ قِبْلَتُهُ قِبَلَ الْبَيْتِ، وَأَنَّهُ صَلَّى أَوَّلَ صَلاَةٍ صَلاَّهَا صَلاَةَ الْعَصْرِ، وَصَلَّى مَعَهُ قَوْمٌ، فَخَرَجَ رَجُلٌ مِمَّنْ صَلَّى مَعَهُ، فَمَرَّ عَلَى أَهْلِ مَسْجِدٍ، وَهُمْ رَاكِعُونَ فَقَالَ أَشْهَدُ بِاللَّهِ لَقَدْ صَلَّيْتُ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم قِبَلَ مَكَّةَ، فَدَارُوا كَمَا هُمْ قِبَلَ الْبَيْتِ، وَكَانَتِ الْيَهُودُ قَدْ أَعْجَبَهُمْ إِذْ كَانَ يُصَلِّي قِبَلَ بَيْتِ الْمَقْدِسِ، وَأَهْلُ الْكِتَابِ، فَلَمَّا وَلَّى وَجْهَهُ قِبَلَ الْبَيْتِ أَنْكَرُوا ذَلِكَ. مَاتَ عَلَى الْقِبْلَةِ قَبْلَ أَنْ تُحَوَّلَ رِجَالٌ وَقُتِلُوا، فَلَمْ نَدْرِ مَا نَقُولُ فِيهِمْ، فَأَنْزَلَ اللَّهُ تَعَالَى {وَمَا كَانَ اللَّهُ لِيُضِيعَ إِيمَانَكُمْ}
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).
مواضع دراسته في كتب التخريج والشروح
فتح الباري شرح صحيح البخاريج١ ص١١٨·كِتَاب الْإِيمَانِ
فتح الباري شرح صحيح البخاري لابن رجبج١ ص١٦٣·كتاب الإيمان
عمدة القاري شرح صحيح البخاريج١ ص٢٤٨·كتاب الإيمانج١ ص٢٣٩·كتاب الإيمان
الاعتبار في الناسخ والمنسوخج١ ص٢٧٨·كِتَابُ الصَّلَاةِ
إتحاف المهرة بالفوائد المبتكرة من أطراف العشرةج٢ ص٤٩٨·الْبَرَاءِ بْنِ عَازِبٍج٢ ص٤٩٦·الْبَرَاءِ بْنِ عَازِبٍ
تحفة الأشراف بمعرفة الأطرافج٢ ص٤٦·حرف الباء
طرقه ومواضعه في الكتب الأخرى
مدار الحديث: أبي إسحاق — ٨ طريقاً في ١٥ كتاباً
رواه عنه: إسرائيل (ت ١٦٠) ×٨، سفيان (ت ١٥٩) ×٦، زهير (ت ١٧٢) ×٥، أبو الأحوص (ت ١٧٩) ×٤، شريك (ت ١٧٧) ×٤، أبو بكر بن عياش (ت ١٩٢) ×٢، حديج بن معاوية (ت ١٧١) ×٢، زكريا (ت ١٤٧) ×١