Yahya related to me from Malik from Yazid ibn Ruman from Salihibn Khawwat from someone who had prayed (the prayer of fear) with theMessenger of Allah, may Allah bless him and grant him peace, on theday of Dhat ar-Riqa that one group had formed a row with him and onegroup had formed a row opposite the enemy. He then prayed one rakawith the group he was with, and then remained standing while theyfinished by themselves. They then left and formed a row opposite theenemy, and then the other group came and he prayed the remaining rakaof his prayer with them, and then remained sitting while they finishedby themselves. Then he said the taslim with them.
USC-MSA web (English) reference: Book 11, Hadith 1
Arabic reference: Book 11, Hadith 444