وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ : أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يُصَلِّي نَحْوَبَيْتِ الْمَقْدَسِ ، فَنَزَلَتُ قَدْ نَرَى تَقَلُّبَ وَجُهِكَ فِي السَّمَاءِ فَلَنُوَلِيَنَّكَ قِبْلَةٌ تَرُضُهَا فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ [البقرة: ۱۴۴] [الآية] فَمَرَّ رَجُلٌ مِنْ بَنِي سَلَمَةَ وَهُمْ رَكُوعٌ فِي صَلَاةِ الْفَجْرِ، وَقَدْ صَلُّوا رَكْعَةً، فَنَادَى: أَلَا إِنَّ الْقِبْلَةَ قَدْ حُوّلَتُ، فَمَالُوا كَمَا هُمْ نَحُوا الْقِبْلَةِ
It is narrated from Anas (may Allah be pleased with him) that the Messenger of Allah ﷺ used to pray facing Bayt al-Maqdis, then this verse was revealed:
﴿قَدْ نَرَى تَقَلُّبَ وَجُهِكَ فِى السَّمَاءِ فَلَنُوَلِيَنَّكَ قِبْلَةٌ تَرْضُهَا فَوَلِ وَجُهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ ﴾
A man from Banu Salamah passed by them while they were bowing in the Fajr prayer, having already prayed one rak’ah. He called out that the qiblah had been changed. They turned toward the qiblah just as they were. Muslim has narrated both.
Research and takhrij: Muslim: 527
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ ، عَنِ النبى صلى الله عليه وسلم قَالَ: مَا بَيْنَ الْمَشْرِقِ وَالْمَغْرِبِ قبلةٌ
It is narrated from Abu Hurairah (may Allah be pleased with him) who said: “The place between the east and the west is the qiblah.”
Research and takhrij: This hadith is sahih (authentic).
Tirmidhi: 342, 344, Ibn Majah: 1011. A marfu’ hadith on this topic is narrated from Abdullah ibn Umar. Al-Bayhaqi: 9/2, Daraqutni: 1, Mustadrak al-Hakim: 1/205. Al-Hakim declared this hadith sahih (authentic) according to the condition of the two Shaykhs, and Imam al-Dhahabi agreed with him.