Anas bin Malik reported,

The Messenger of Allah ﷺ used to pray facing Bayt al-Maqdis, and then this was revealed, "We have certainly seen you turning your face about toward the heaven, so We shall surely turn you toward a qibla that will please you. So turn your face toward Masjid al-Haram, and wherever you may be, turn your faces toward it. Those who have been given the Scripture know well that it is the truth from their Lord, and Allah is not unaware of what they do" [Baqarah 2:144].A man from the tribe of Banu Salama passed by while they were bowing in the Fajr prayer, having already completed one rakat, and he called out, "Take note, the qibla has been changed!"So they turned, just as they were, toward the new qibla.

Azami 11928

Sahih

عن أنس

أن رسول الله ﷺ كان يصلي نحو بيت المقدس فنزلت: {قد نرى تقلب وجهك في السماء فلنولينك قبلة ترضها فول وجهك شطر المسجد الحرام وحيث ما كنتم فولوا وجوهكم شطره وإن الذين أوتوا الكتاب ليعلمون أنه الحق من ربهم وما الله بغفل عما يعملون} فمر رجل من بني سلمة، وهم ركوع في صلاة الفجر، وقد صلوا ركعة فنادى: ألا إن القبلة قد حولت، فمالوا كما هو نحو القبلة.

الأعظمي 11928صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "The foolish among the people will say, 'What has turned them away from their qibla which they used to face?' Say, 'To Allah belongs the east and the Maghrib. He guides whom He wills to a straight path.' And thus We have made you a moderate nation that you will be witnesses over the people and the Messenger will be a witness over you. And We did not make the qibla which you used to face except that We might make evident who would follow the Messenger from who would turn back on his heels. And indeed, it was difficult except for those whom Allah has guided. And never would Allah cause your faith to be lost."
Numbering
Jami al-Kamil 11928 (2nd edition)
Azami 11928