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

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.

Comment

The Book of Mosques and Places of Prayer - Sahih Muslim 525 b

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.

Historical Context and Divine Wisdom

This hadith from Sahih Muslim documents the transition of the qibla from Bayt al-Maqdis (Jerusalem) to the Sacred Mosque in Mecca. The period of sixteen or seventeen months corresponds to the early Medinan period, demonstrating Allah's gradual legislation.

The initial direction toward Jerusalem served important purposes: maintaining connection with previous prophets, distinguishing Muslims from pagan Arabs who faced the Ka'ba, and testing the believers' obedience to divine command regardless of personal inclination.

Legal and Spiritual Significance

The change of qibla established the distinct identity of the Muslim ummah and affirmed the Abrahamic foundation of Islam. The Ka'ba, built by Prophet Ibrahim and his son Ismail, represents the original monotheistic sanctuary.

Scholars note that this incident illustrates the principle of abrogation (naskh) in Islamic law, where later revelations supersede earlier ones when wisdom dictates. The timing also coincided with the Jews' criticism of following their qibla, after which Allah granted Muslims their own distinct direction of prayer.

Lessons in Obedience

The Companions' immediate compliance with the new command, despite their long-established practice, exemplifies perfect submission to divine will. This teaches Muslims that religious ordinances are subject to divine wisdom rather than human preference.

The precise recording of the duration shows the meticulous preservation of Islamic history and the importance of verifying narrations through reliable chains of transmission.