Sahih al-Bukhari 942
Abul Yaman narrated to us, he said: Shu'aib told us, narrating from Zuhri, he said: I asked (Zuhri) whether the Prophet (saw) too had offered this Prayer, that is, the Prayer of Fear (Salat-ul-Khauf)? He said: Salim told me that Hazrat Abdullah bin Umar (ra) used to say: I went with the Messenger of Allah (saw) to fight towards Najd. We stood facing the enemy and formed rows in front of them. The Messenger of Allah (saw) stood up to lead us in prayer. One group stood praying with him and one group kept facing the enemy. The Messenger of Allah (saw), together with those who were with him, bowed and made two prostrations. Then these people went back to the place of the group which had not yet prayed, and they came. He led them too in one Rak'ah and made two prostrations. Then he said the Salam. Then each one of them stood up and, on his own, offered one Rak'ah, bowing and making two prostrations.
AI-translated by Islam-Today