Sahih al-Bukhari
Sahih al-Bukhari 402b
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
Arabic hadith text
حَدَّثَنَا ابْنُ أَبِي مَرْيَمَ، قَالَ أَخْبَرَنَا يَحْيَى بْنُ أَيُّوبَ، قَالَ حَدَّثَنِي حُمَيْدٌ، قَالَ سَمِعْتُ أَنَسًا، بِهَذَا
Translation
Narrated Anas
as above (395).