Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:4535ʿAbdullāh b. Yūsuf > Mālik > Nāfiʿ > ʿAbd

Whenever ʿAbdullah bin ʿUmar was asked about Salat-al-Khauf (i.e. prayer of fear) he said, "The Imam comes forward with a group of people and leads them in a one rakʿa prayer while another group from them who has not prayed yet, stay between the praying group and the enemy. When those who are with the Imam have finished their one rakʿa, they retreat and take the positions of those who have not prayed but they will not finish their prayers with Taslim. Those who have not prayed, come forward to offer a rakʿa with the Imam (while the first group covers them from the enemy). Then the Imam, having offered two rakʿat, finishes his prayer. Then each member of the two groups offer the second rakʿa alone after the Imam has finished his prayer. Thus each one of the two groups will have offered two rakʿat. But if the fear is too great, they can pray standing on their feet or riding on their mounts, facing the Qibla or not." Nafiʿ added: I do not think that ʿAbdullah bin ʿUmar narrated this except from Messenger of Allah ﷺ (See Hadith No. 451, Vol 5 to know exactly "The Fear Prayer.")  

البخاري:٤٥٣٥حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ حَدَّثَنَا مَالِكٌ عَنْ نَافِعٍ أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ ؓ كَانَ إِذَا سُئِلَ عَنْ صَلاَةِ الْخَوْفِ قَالَ

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


See similar narrations below:

Collected by Mālik
malik:11-3Mālik > Nāfiʿ

Yahya related to me from Malik from Nafi that Abdullah ibn Umar, when asked about the fear prayer said, "The imam and a group of people go forward and the imam prays a raka with them, while another group, who have not yet prayed, position themselves between him and the enemy. When those who are with him have prayed a raka they draw back to where those who have not prayed are, and do not say the taslim. Then those who have not prayed come forward and pray a raka with him. Then the imam leaves, as he has now prayed two rakas. Everyone else in the two groups stands and prays a raka by himself after the imam has left. In this way each of the two groups will have prayed two rakas. If the fear is greater than that, then the men pray standing on their feet or mounted, either facing the qibla or otherwise."  

مالك:١١-٣وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ نَافِعٍ

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