Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:700d[Chain 1] Abū Kurayb > Ibn al-Mubārak And Ibn Abū Zāʾidah [Chain 2] Ibn Numayr > Abū > ʿAbd

" Whether you turn thither is Allah's face," and it was revealed in this context.  

مسلم:٧٠٠dوَحَدَّثَنَاهُ أَبُو كُرَيْبٍ أَخْبَرَنَا ابْنُ الْمُبَارَكِ وَابْنُ أَبِي زَائِدَةَ ح وَحَدَّثَنَا ابْنُ نُمَيْرٍ حَدَّثَنَا أَبِي كُلُّهُمْ عَنْ عَبْدِ الْمَلِكِ بِهَذَا الإِسْنَادِ نَحْوَهُ وَفِي حَدِيثِ ابْنِ مُبَارَكٍ وَابْنِ أَبِي زَائِدَةَ ثُمَّ تَلاَ ابْنُ عُمَرَ { فَأَيْنَمَا تُوَلُّوا فَثَمَّ وَجْهُ اللَّهِ}

وَقَالَ فِي هَذَا نَزَلَتْ