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:2203Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Ḥasan ʿAlī b. Aḥmad b. Qurqūb al-Tammār Bihamdān > Ibrāhīm b. al-Ḥusayn > Ādam > Ibn Abū Dhiʾb > ʿUthmān b. ʿAbdullāh b. Surāqah > Jābir b. ʿAbdullāh al-Anṣārī

[Machine] I saw the Messenger of Allah ﷺ praying on his riding animal during the Battle of Anmar, facing the direction of the East, voluntarily.  

البيهقي:٢٢٠٣أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أَخْبَرَنِي أَبُو الْحَسَنِ عَلِيُّ بْنُ أَحْمَدَ بْنِ قُرْقُوبٍ التَّمَّارُ بِهَمْدَانَ أنبأ إِبْرَاهِيمُ بْنُ الْحُسَيْنِ ثنا آدَمُ ثنا ابْنُ أَبِي ذِئْبٍ أنبأ عُثْمَانُ بْنُ عَبْدِ اللهِ بْنِ سُرَاقَةَ عَنْ جَابِرِ بْنِ عَبْدِ اللهِ الْأَنْصَارِيِّ قَالَ

رَأَيْتُ رَسُولَ اللهِ ﷺ فِي غَزْوَةِ أَنْمَارٍ يُصَلِّي عَلَى رَاحِلَتِهِ مُتَوَجِّهًا قِبَلَ الْمَشْرِقِ تَطَوُّعًا  

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

See similar narrations below:

Collected by Bukhārī
bukhari:4140Ādam > Ibn Abū Dhiʾb > ʿUthmān b. ʿAbdullāh b. Surāqah > Jābir b. ʿAbdullāh al-Anṣārī

I saw the Prophet ﷺ offering his Nawafil prayer on his Mount facing the East during the Ghazwa of Anmar.  

البخاري:٤١٤٠حَدَّثَنَا آدَمُ حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ حَدَّثَنَا عُثْمَانُ بْنُ عَبْدِ اللَّهِ بْنِ سُرَاقَةَ عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ الأَنْصَارِيِّ قَالَ

رَأَيْتُ النَّبِيَّ ﷺ فِي غَزْوَةِ أَنْمَارٍ يُصَلِّي عَلَى رَاحِلَتِهِ مُتَوَجِّهًا قِبَلَ الْمَشْرِقِ مُتَطَوِّعًا