Syedna Anas (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) used to pray facing towards Bayt al-Maqdis, then when this verse was revealed: {قَدْنَرٰیتَقَلُّبَوَجْہِکَفِیالسَّمَائِفَلَنُوَلِّیَنَّکَقِبْلَۃًتَرْضَاہَافَوَلِّوَجْہَکَشَطْرَالْمَسْجِدِالْحَرَامِ} … "Indeed, We see the turning of your face towards the heaven; surely We shall turn you to a Qiblah which you shall like. So turn your face towards al-Masjid al-Haram." Then a man passed by the people of Banu Salamah while they were in the state of bowing in the Fajr prayer and had completed one rak'ah, the passerby called out: "Beware! The Qiblah has been changed, beware! The Qiblah has been changed and now the Ka'bah is the Qiblah." So they turned towards the Qiblah in that very state.
Hadith Referenceالفتح الربانی / أبواب تفسير القرآن وفضائل السور والآيات حسب ترتيب النزول / 8493
Hadith Gradingمحدثین:صحیح
Hadith Takhrij«أخرجه مسلم: 527، (انظر مسند أحمد ترقيم الرسالة: 14034 ترقیم بيت الأفكار الدولية: 14079»
Brief Explanation
Benefits: … This is the incident of Masjid Quba, that is, the people of Quba received the news of the change of qiblah during the Fajr prayer. The very first example of abrogation (naskh) is the change of the qiblah. The name of the resident of Banu Salamah was Sayyiduna ‘Abbad bin Bishr radi Allahu anhu. From this hadith, it is understood that accepting solitary reports (akhbar al-ahad) is obligatory, because the one who conveyed the news about the change of qiblah was only a single person, yet the people trusted his word to such an extent that they changed the qiblah during the prayer itself.