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.
bayhaqi:2200[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Zakariyyā b. Abū Isḥāq Waʾabū Bakr b. al-Ḥasan al-Qāḍī > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Mālik [Chain 2] Aḥmad b. Kāmil al-Mustamlī > Bishr b. Aḥmad al-Isfarāyīnī > Dāwud b. al-Ḥusayn al-Bayhaqī > Yaḥyá b. Yaḥyá > Mālik > ʿAbdullāh b. Dīnār > Ibn ʿUmar

[Machine] The Prophet ﷺ used to pray on his riding animal wherever it turned. Abdullah bin Dinari said, "Ibn Umar used to do the same, following the narration of Yahya bin Yahya. In another narration by Ash-Shafi'i, he said, 'The Prophet ﷺ used to pray on his riding animal during travel, wherever it turned, but it is not mentioned what came after that.'"  

البيهقي:٢٢٠٠أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ وَأَبُو بَكْرِ بْنُ الْحَسَنِ الْقَاضِي قَالُوا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ أنبأ الشَّافِعِيُّ أنبأ مَالِكٌ (ح) وَأَخْبَرَنَا أَحْمَدُ بْنُ كَامِلٍ الْمُسْتَمْلِيُّ أنبأ بِشْرُ بْنُ أَحْمَدَ الْإِسْفَرَايِينِيُّ ثنا دَاوُدُ بْنُ الْحُسَيْنِ الْبَيْهَقِيُّ ثنا يَحْيَى بْنُ يَحْيَى قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ عَبْدِ اللهِ بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ قَالَ

كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي عَلَى رَاحِلَتِهِ حَيْثُمَا تَوَجَّهَتْ بِهِ قَالَ عَبْدُ اللهِ بْنُ دِينَارٍ كَانَ ابْنُ عُمَرَ يَفْعَلُ ذَلِكَ لَفْظُ حَدِيثِ يَحْيَى بْنِ يَحْيَى وَفِي رِوَايَةِ الشَّافِعِيِّ قَالَ كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي عَلَى رَاحِلَتِهِ فِي السَّفَرِ حَيْثُمَا تَوَجَّهَتْ بِهِ وَلَمْ يَذْكُرْ مَا بَعْدَهُ  

رَوَاهُ مُسْلِمُ بْنُ الْحَجَّاجِ فِي الصَّحِيحِ عَنْ يَحْيَى بْنِ يَحْيَى وَأَخْرَجَهُ الْبُخَارِيُّ مِنْ وَجْهٍ آخَرَ عَنِ ابْنِ دِينَارٍ

See similar narrations below:

Collected by Mālik
malik:9-30Mālik > ʿAbdullāh b. Dīnār > ʿAbdullāh b. ʿUmar

Yahya related to me from Malik from Abdullah ibn Dinar from Abdullah ibn Umar that the Messenger of Allah ﷺ used to pray on his mount while travelling, whichever way it was facing. Abdullah ibn Dinar said, "Abdullah ibn Umar would also do that."  

مالك:٩-٣٠وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ

أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يُصَلِّي عَلَى رَاحِلَتِهِ فِي السَّفَرِ حَيْثُ تَوَجَّهَتْ بِهِ قَالَ عَبْدُ اللَّهِ بْنُ دِينَارٍ وَكَانَ عَبْدُ اللَّهِ بْنُ عُمَرَ يَفْعَلُ ذَلِكَ