Hadithcore
Sahih Muslim, 700 d
sahih

This hadith has been narrated by another chain of transmitters and in the one narrated by Ibn Mubarak and Ibn Abu Za'ida (these words are narrated). Ibn 'Umar then recited:

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

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

References2 variants
In-Book Reference
Book 6, Hadith 44
USC-MSA web (English) reference
Book 4, Hadith 1500 (deprecated numbering scheme)