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.
abudawud:1244ʿImrān b. Maysarah > Ibn Fuḍayl > Khuṣayf > Abū ʿUbaydah > ʿAbdullāh b. Masʿūd

The Messenger of Allah ﷺ led us in prayer in the time of danger. They (the people) stood in two rows. One row was behind the Messenger of Allah ﷺ and the other faced the enemy. The Messenger of Allah ﷺ led them in one rak'ah,and then the other section came and took their place; they went and faced the enemy. The Prophet ﷺ led them in one rak'ah and uttered the salutation. They stood up and prayed the second rak'ah by themselves and uttered the salutation and went away; they took the place of the other section facing the enemy. They came back and took their place. They prayed one rak'ah by themselves and then uttered the salutation.  

أبو داود:١٢٤٤حَدَّثَنَا عِمْرَانُ بْنُ مَيْسَرَةَ حَدَّثَنَا ابْنُ فُضَيْلٍ حَدَّثَنَا خُصَيْفٌ عَنْ أَبِي عُبَيْدَةَ عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ

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


See similar narrations below:

Collected by Aḥmad, Ṭabarānī
ahmad:3561Muḥammad b. Fuḍayl > Khuṣayf > Abū ʿUbaydah > ʿAbdullāh

The Messenger of Allah ﷺ led us in prayer in the time of danger. They (the people) stood in two rows. One row was behind the Messenger of Allah ﷺ and the other faced the enemy. The Messenger of Allah ﷺ led them in one rak'ah,and then the other section came and took their place; they went and faced the enemy. The Prophet ﷺ led them in one rak'ah and uttered the salutation. They stood up and prayed the second rak'ah by themselves and uttered the salutation and went away; they took the place of the other section facing the enemy. They came back and took their place. They prayed one rak'ah by themselves and then uttered the salutation. (Using translation from Abū Dāʾūd 1244)   

أحمد:٣٥٦١حَدَّثَنَا مُحَمَّدُ بْنُ فُضَيْلٍ عَنْ خُصَيْفٍ حَدَّثَنَا أَبُو عُبَيْدَةَ عَنْ عَبْدِ اللهِ قَالَ

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

tabarani:10272al-Ḥusayn b. Isḥāq al-Tustarī And ʿAbdān b. Aḥmad > ʿAbd al-Ḥamīd b. Bayān > Isḥāq al-Azraq > Sharīk > Abū Isḥāq > Abū ʿUbaydah > ʿAbdullāh b. Masʿūd

[Machine] "The Messenger of Allah, ﷺ , performed the prayer of fear (Salat al-Khawf), so he arranged them in rows, facing the enemy, row after row. He prayed one rak'ah with them, then the row that followed him stayed behind, and they stood in the position of those who were facing the enemy. Those people advanced and prayed behind him one rak'ah, then he said the salutation to them. Then those who were behind him stood up and prayed one rak'ah, then those people advanced and stood in the position of those people, and they prayed one rak'ah."  

الطبراني:١٠٢٧٢حَدَّثَنَا الْحُسَيْنُ بْنُ إِسْحَاقَ التُّسْتَرِيُّ وَعَبْدَانُ بْنُ أَحْمَدَ قَالَا ثنَا عَبْدُ الْحَمِيدِ بْنُ بَيَانٍ ثنا إِسْحَاقُ الْأَزْرَقُ عَنْ شَرِيكٍ عَنْ أَبِي إِسْحَاقَ عَنْ أَبِي عُبَيْدَةَ عَنْ عَبْدِ اللهِ بْنِ مَسْعُودٍ قَالَ

«صَلَّى رَسُولُ اللهِ ﷺ صَلَاةَ الْخَوْفِ فَصَفَّ خَلْفَهُ صَفًّا وَصَفًّا مُقَابِلَ الْعَدُوِّ فَصَلَّى بِهِمْ رَكْعَةً ثُمَّ تَأَخَّرَ الصَّفُّ الَّذِي يَلِيهِ فَقَامُوا مَقَامَ الَّذِينَ كَانُوا مُقَابِلَ الْعَدُوِّ وَتَقَدَّمَ أُولَئِكَ فَصَلُّوا خَلْفَهُ رَكْعَةً ثُمَّ سَلَّمَ عَلَيْهِمْ فَقَامَ الَّذِينَ خَلْفَهُ فَصَلُّوا رَكْعَةً ثُمَّ تَقَدَّمَ أُولَئِكَ فَقَامُوا مَقَامَ هَؤُلَاءِ فَصَلُّوا رَكْعَةً»