Ibn `Umar said something similar to Mujahid's saying: Whenever (Muslims and non-Muslims)…

Sahih al-Bukhari Book 12 Hadith 2

Sahih al-Bukhari #943

Fear Prayer 12:2

Narrated Nafi`:

Ibn `Umar said something similar to Mujahid's saying: Whenever (Muslims and non-Muslims) stand face to face in battle, the Muslims can pray while standing. Ibn `Umar added, "The Prophet (ﷺ) said, 'If the number of the enemy is greater than the Muslims, they can pray while standing or riding (individually).' "

Chapter: The Salat-ul-Khauf while standing or riding

Grade: Sahih