Salim b. ‘Abdallah b. ‘Umar quoted his father as saying: I went on an expedition with God’s Messenger to Najd, and when we came in front of the enemy we drew up in line facing them. God’s Messenger then stood up and led us in prayer, and one section stood up along with him while another faced the enemy. He prayed a rak'a with those who were with him and made two prostrations, and then they changed places with those who had not prayed. When they came God’s Messenger prayed a rak'a with them and made two prostrations, then he uttered the salutation and each of them got up and left, after which he prayed a rak'a alone and made two prostrations. Nafi‘ transmitted something similar, adding that when there was greater cause for fear than on that occasion they prayed standing on their feet or mounted, without considering whether or not they were facing the qibla. Nafi‘ said he thought God’s Messenger was the one on whose authority Ibn ‘Umar mentioned that.
Bukhari transmitted it.
Yazid b. Ruman told on the authority of Salih b. al-Khawwat on the authority of one who prayed in time of danger along with God’s Messenger at the battle of Dhat ar-Riqa'* that a section formed a line along with him and…
Jabir said: We went forward with God’s Messenger, and when we reached Dhat ar-Riqa‘ we came to a shady tree which we left for him. One of the polytheists came along and seeing the sword of God’s Messenger hanging on a tr…
He said: God’s Messenger led us in the prayer in time of danger and we drew up in two rows behind him with the enemy between us and the qibla. The Prophet (ﷺ) said, "God is most great” and we all said it; then he bowed a…