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.
tirmidhi:2958ʿAbd b. Ḥumayd > Yazīd b. Hārūn > ʿAbd al-Malik b. Abū Sulaymān > Saʿīd b. Jubayr > Ibn ʿUmar

"The Messenger of Allah ﷺ would perform voluntary Salat upon his mount facing whichever direction he was headed, while he was coming from Makkah to Al-Madinah." Then Ibn 'Umar recited: To Allah belong both the east and the west. (2:115)" And Ibn 'Umar said: "It was about this that the Ayah was revealed." [Abu Eisa said:] This Hadith is Hasan Sahih. It has been reported from Qatadah that he said about this Ayah: To Allah belong both the east and the west, so wherever you turn, there is the Face of Allah. [Qatadah said:] "It is abrogated, it was abrogated by [His saying]: So turn your face in the direction of Al-Masjid Al-Haram. Meaning: facing it." And it has been reported that Mujãhid said about this Ayah: "So wherever you turn, there is the Face of Allah": "So there is the direction of Allah."  

الترمذي:٢٩٥٨حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ أَخْبَرَنَا يَزِيدُ بْنُ هَارُونَ أَخْبَرَنَا عَبْدُ الْمَلِكِ بْنُ أَبِي سُلَيْمَانَ قَالَ سَمِعْتُ سَعِيدَ بْنَ جُبَيْرٍ يُحَدِّثُ عَنِ ابْنِ عُمَرَ قَالَ

كَانَ النَّبِيُّ ﷺ يُصَلِّي عَلَى رَاحِلَتِهِ تَطَوُّعًا حَيْثُمَا تَوَجَّهَتْ بِهِ وَهُوَ جَاءٍ مِنْ مَكَّةَ إِلَى الْمَدِينَةِ ثُمَّ قَرَأَ ابْنُ عُمَرَ هَذِهِ الآيَةَ (وَلِلَّهِ الْمَشْرِقُ وَالْمَغْرِبُ ) الآيَةَ قَالَ ابْنُ عُمَرَ فَفِي هَذَا أُنْزِلَتْ هَذِهِ الآيَةُ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ وَيُرْوَى عَنْ قَتَادَةَ أَنَّهُ قَالَ فِي هَذِهِ الآيَةِِ ()ولله الْمَشْرِقُ وَالْمَغْرِبُ فَأَيْنَمَا تُوَلُّوا فَثَمَّ وَجْهُ اللَّهِ ) قَالَ قَتَادَةُ هِيَ مَنْسُوخَةٌ نَسَخَهَا قَوْلُهُ (فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ ) أَىْ تِلْقَاءَهُ حَدَّثَنَا بِذَلِكَ مُحَمَّدُ بْنُ عَبْدِ الْمَلِكِ بْنِ أَبِي الشَّوَارِبِ حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ عَنْ سَعِيدٍ عَنْ قَتَادَةَ وَيُرْوَى عَنْ مُجَاهِدٍ فِي هَذِهِ الآيَةِ (أَيْنَمَا تُوَلُّوا فَثَمَّ وَجْهُ اللَّهِ ) قَالَ فَثَمَّ قِبْلَةُ اللَّهِ حَدَّثَنَا بِذَلِكَ أَبُو كُرَيْبٍ مُحَمَّدُ بْنُ الْعَلاَءِ حَدَّثَنَا وَكِيعٌ عَنِ النَّضْرِ بْنِ عَرَبِيٍّ عَنْ مُجَاهِدٍ بِهَذَا

See similar narrations below:

Collected by Aḥmad
ahmad:4714Yaḥyá > ʿAbd al-Malik > Saʿīd b. Jubayr > Ibn ʿUmar

"The Messenger of Allah ﷺ used to pray while on his animal when he was coming back from Makkah to Madinah. Concerning this, the verse was revealed: So wherever you turn (yourselves or your faces) there is the Face of Allah.'" [1] [1] Al-Baqarah 2:115. (Using translation from Nasāʾī 491)   

أحمد:٤٧١٤حَدَّثَنَا يَحْيَى عَنْ عَبْدِ الْمَلِكِ حَدَّثَنَا سَعِيدُ بْنُ جُبَيْرٍ أَنَّ ابْنَ عُمَرَ قَالَ

كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي عَلَى رَاحِلَتِهِ مُقْبِلًا مِنْ مَكَّةَ إِلَى الْمَدِينَةِ حَيْثُ تَوَجَّهَتْ بِهِ وَفِيهِ نَزَلَتْ هَذِهِ الْآيَةُ {فَأَيْنَمَا تُوَلُّوا فَثَمَّ وَجْهُ اللهِ} [البقرة 115]