Sahih Muslim – Hadith No : 1980

Ibn Umar reported that the Messenger of Allah (may peace be upon him) observed prayer in danger on some day (in this way): a group stood with him (the Holy Prophet) (for prayer) and the other group stood In front of the enemy. Then those who were with (him) observed one rak’ah of prayer and they went back and the others came and they observed one rak’ah (with him). Then both the groups completed one rak’ah each. Ibn Umar said: When there is greater danger, then observe prayer even on the ride or with the help of gestures in a standing posture.

Hadith In Arabic Text :

وحدثنيه أبو الربيع الزهراني، حدثنا فليح، عن الزهري، عن سالم بن عبد الله، بن عمر عن أبيه، أنه كان يحدث عن صلاة، رسول الله صلى الله عليه وسلم في الخوف ويقول صليتها مع رسول الله صلى الله عليه وسلم ‏.‏ بهذا المعنى ‏.‏

Chapter : The Book of Prayer (Travellers) – كتاب صلاة المسافرين وقصرها