Muwatta Malik, Book 11, Hadith 445 (In-Book)

Yahya related to me from Malik from Yahya ibn Said from al-Qasim ibn Muhammad from Salih ibn Khawwat that Sahl ibn Abi Hathma related to him that the form of the prayer of fear was that the imam stood with a group of his companions, while another group faced the enemy. The imam prayed one raka with them, including the prostration, and then stood. He remained standing while they completed the remaining raka by themselves. They then said the taslim, left, and formed up opposite the enemy while the imam remained standing. Then the others who had not prayed came forward and said the takbir behind the imam and he prayed one raka with them, including the prostration. He then said the taslim, while they stood up and prayed the remaining raka by themselves. Then they said the taslim.

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنِ الْقَاسِمِ بْنِ مُحَمَّدٍ، عَنْ صَالِحِ بْنِ خَوَّاتٍ، أَنَّ سَهْلَ بْنَ أَبِي حَثْمَةَ، حَدَّثَهُ أَنَّ صَلاَةَ الْخَوْفِ أَنْ يَقُومَ الإِمَامُ وَمَعَهُ طَائِفَةٌ مِنْ أَصْحَابِهِ وَطَائِفَةٌ مُوَاجِهَةٌ الْعَدُوَّ فَيَرْكَعُ الإِمَامُ رَكْعَةً وَيَسْجُدُ بِالَّذِينَ مَعَهُ ثُمَّ يَقُومُ فَإِذَا اسْتَوَى قَائِمًا ثَبَتَ وَأَتَمُّوا لأَنْفُسِهِمُ الرَّكْعَةَ الْبَاقِيَةَ ثُمَّ يُسَلِّمُونَ وَيَنْصَرِفُونَ وَالإِمَامُ قَائِمٌ فَيَكُونُونَ وِجَاهَ الْعَدُوِّ ثُمَّ يُقْبِلُ الآخَرُونَ الَّذِينَ لَمْ يُصَلُّوا فَيُكَبِّرُونَ وَرَاءَ الإِمَامِ فَيَرْكَعُ بِهِمُ الرَّكْعَةَ وَيَسْجُدُ ثُمَّ يُسَلِّمُ فَيَقُومُونَ فَيَرْكَعُونَ لأَنْفُسِهِمُ الرَّكْعَةَ الْبَاقِيَةَ ثُمَّ يُسَلِّمُونَ ‏.‏

sunnah.com

also referenced under: Book 11, Hadith 2 (USC-MSA)