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.
suyuti:420-141b
Request/Fix translation

  

السيوطي:٤٢٠-١٤١b

"صَلَّى رَسُولُ الله ﷺ صَلاةَ الْخَوْفِ بِذِى قَرَدَ فَصَفَّ صَفًّا خَلفَهُ، وَصَفًّا مُوَازىَ الْعَدُوِّ، فَصَلَّى بِهمْ رَكعَةً، ثُمَّ سَلَّمَ عَلَيْهِمْ جَمِيعًا، ثُمَّ انْصَرَفُوا فَكَانَ لِلنَّبِىّ ﷺ رَكعَتَان، وَلِكُل وَاحدٍ منَ الفَريضَةِ رَكْعَةٌ".  

[عب] عبد الرازق [ش] ابن أبى شيبة وعبد بن حميد، وابن جرير، [ك] الحاكم في المستدرك

See similar narrations below:

Collected by Aḥmad, Bayhaqī
ahmad:3364ʿAbd al-Raḥman > Sufyān > Abū Bakr / Ibn Abū al-Jahm > ʿUbaydullāh b. ʿAbdullāh > Ibn ʿAbbās

[Machine] The Messenger of Allahﷺ performed the prayer of fear, with those behind him forming a row, and another row equivalent to the enemy. He prayed with them one unit of prayer, then these (those who were behind him) went to the position of these (those equivalent to the enemy), and these (those equivalent to the enemy) came (forward), and he prayed with them one unit of prayer, then he said the tasleem. So it was two units for the Prophetﷺ and one unit for each group.  

أحمد:٣٣٦٤حَدَّثَنَا عَبْدُ الرَّحْمَنِ حَدَّثَنَا سُفْيَانُ عَنِ أَبِي بَكْرٍ يَعْنِي ابْنَ أَبِي الْجَهْمِ عَنْ عُبَيْدِ اللهِ بْنِ عَبْدِ اللهِ عَنِ ابْنِ عَبَّاسٍ قَالَ

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

bayhaqi:6048Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Asīd b. ʿĀṣim > al-Ḥusayn b. Ḥafṣ > Sufyān > Abū Bakr b. Abū Jahm > ʿUbaydullāh b. ʿAbdullāh b. ʿUtbah > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ prayed the prayer of fear with a group carrying monkeys. He lined them up in rows, with a row parallel to the enemy. He prayed a Rak'ah with them, then these people went to the forefront, and those people came and prayed a Rak'ah with the Prophet ﷺ , then they greeted him. Sufyan said: The Prophet ﷺ prayed two Rak'ahs and each group prayed one Rak'ah.  

البيهقي:٦٠٤٨أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أَسِيدُ بْنُ عَاصِمٍ ثنا الْحُسَيْنُ بْنُ حَفْصٍ عَنْ سُفْيَانَ قَالَ حَدَّثَنِي أَبُو بَكْرِ بْنُ أَبِي جَهْمٍ ثنا عُبَيْدُ اللهِ بْنُ عَبْدِ اللهِ بْنِ عُتْبَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

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