Sahih al-Bukhari 4129
Qutaibah bin Sa'id told us. He reported from Malik, Malik from Yazid bin Ruman, and he from Salih bin Khawwat, who related from those who took part with the Messenger of Allah (saw) in the battle of Dhat ar-Riqa', that he (saw) led the Prayer of fear (Salat al-Khauf) in this way: one group stood in ranks with him (saw) and another group remained facing the enemy. He (saw) led the group that was with him in one unit (rak'ah). Then he (saw) remained standing, and it completed the second unit on its own and finished the Prayer. Then (these people), having finished, went away and stood in ranks facing the enemy, and the other group came and he (saw) led them in the one unit that remained of his (saw) Prayer. Then he (saw) remained seated, and they completed the second unit on their own and finished (the Prayer). After that he concluded with the salutation (salam) together with them.
AI-translated by Islam-Today