32) Chapter: What has been said about (facing) the Qiblah (Kabah at Makkah) and wherever considered that there was no need to repeat the Salat (prayer) if someone offered prayers by mistake facing a direction other than that of the Qiblah
Narrated `Abdullah bin `Umar:
While the people were offering the Fajr prayer at Quba' (near Medina), someone came to them and
said: "It has been revealed to Allah's Messenger (ﷺ) tonight, and he has been ordered to pray facing the
Ka`ba." So turn your faces to the Ka`ba. Those people were facing Sham (Jerusalem) so they turned
their faces towards Ka`ba (at Mecca).
32) بَابُ مَا جَاءَ فِي الْقِبْلَةِ، وَمَنْ لاَ يَرَى الإِعَادَةَ عَلَى مَنْ سَهَا فَصَلَّى إِلَى غَيْرِ الْقِبْلَةِ
وَقَدْ سَلَّمَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي رَكْعَتَيِ الظُّهْرِ، وَأَقْبَلَ عَلَى النَّاسِ بِوَجْهِهِ، ثُمَّ أَتَمَّ مَا بَقِيَ.
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكُ بْنُ أَنَسٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، قَالَ بَيْنَا النَّاسُ بِقُبَاءٍ فِي صَلاَةِ الصُّبْحِ إِذْ جَاءَهُمْ آتٍ فَقَالَ إِنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَدْ أُنْزِلَ عَلَيْهِ اللَّيْلَةَ قُرْآنٌ، وَقَدْ أُمِرَ أَنْ يَسْتَقْبِلَ الْكَعْبَةَ فَاسْتَقْبِلُوهَا، وَكَانَتْ وُجُوهُهُمْ إِلَى الشَّأْمِ، فَاسْتَدَارُوا إِلَى الْكَعْبَةِ.