Al-Ilmam bi-Ahadith al-Ahkam 183
وَعَن أنس رَضِيَ اللَّهُ عَنْه: " أَن رَسُول الله ﷺ كَانَ يُصَلِّي نَحْو بَيت الْمُقَدّس، فَنزلت {قد نرَى تقلب وَجهك فِي السَّمَاء فلنولينك قبْلَة ترضاها فول وَجهك شطر الْمَسْجِد الْحَرَام} ) الْبَقَرَة ١٤٤ الْآيَة . فَمر رجل من بني سَلمَة وهم رُكُوع فِي صَلَاة الْفجْر، وَقد صلوا رَكْعَة، فَنَادَى: " أَلا إِن الْقبْلَة قد حُولت؛ فمالوا كَمَا هم نَحْو الْقبْلَة ". أخرجهُمَا مُسلم.
From Anas, may Allah be pleased with him: "That the Messenger of Allah ﷺ used to pray towards Bayt al-Maqdis, then [the verse] was revealed: 'We have seen the turning of your face towards the sky, so We will surely turn you to a qiblah that will please you. So turn your face towards al-Masjid al-Haram' (al-Baqarah 2:144), the verse. A man of Banu Salimah passed by while they were bowing in the Fajr prayer, having prayed one rakʿah, and he called out: 'Indeed, the qiblah has been changed.' So they turned, as they were, towards the qiblah." Muslim reported both.