Abdullah bin Umar reported,

Something similar to the statement of Mujahid, that when they are in close engagement they pray standing. Ibn Umar added, narrating from the Prophet ﷺ, "And if they are more numerous than that, then let them pray standing and while mounted."

Bukhari 943

Sahih

حدثنا سعيد بن يحيى بن سعيد القرشي قال حدثني أبي قال حدثنا ابن جريج عن موسى بن عقبة عن نافع

عن ابن عمر

نحوا من قول مجاهد إذا اختلطوا قياما وزاد ابن عمر عن النبي ﷺ وإن كانوا أكثر من ذلك فليصلوا قياما وركبانا

البخاري 943صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer of fear
Chapter
Prayer of fear while standing or mounted, on foot or standing
Numbering
Darussalam 943
Bukhari 943