This hadith has been narrated by another chain of transmitters.
Sahih Muslim Book 6, Hadith 371
← Previous Hadith
The Messenger of Allah (may peace he upon him) led on* of the two groups In one rak'ah of prayer in danger, while the other group faced the -enemy. Then they (the members of the first group) went back and replaced their companions who were facing the enemy. and then they (the members of the second group) came and the Messenger of Allah (ﷺ) led them in one rak'ah of prayer. Then the Messenger of Allah (ﷺ) pronounced salutation, and then they (the members of the Ant group) completed the rak'ah and they (the members of the second group) completed the rak'ah.
Sahih Muslim Book 6, Hadith 370 Next Hadith → 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.
Sahih Muslim Book 6, Hadith 372
Sahih Muslim Book 6, Hadith 370 Next Hadith → 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.
Sahih Muslim Book 6, Hadith 372