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:1246Musaddad > Yaḥyá > Sufyān > al-Ashʿath b. Sulaym > al-Aswad b. Hilāl > Thaʿlabah b. Zahdam

Tha'labah ibn Zahdam said: We accompanied Sa'd ibn al-'As at Tabaristan. He stood and said: Which of you prayed along with the Messenger of Allah ﷺ in time of danger? Hudhayfah said: I then he led one section in one rak'ah and the other section in one rak'ah. They did not pray the second rak'ah by themselves. Abu Dawud: This tradition has been transmitted by 'Ubaid Allah b. 'Abd Allah and Mujahid on the authority of Ibn 'Abbas from the Prophet ﷺ in like manner. This has also been narrated by 'Abd Allah b. Shaqiq from Abu Hurairah from the Prophet ﷺ. Yazid al-Faqir and Abu Musa also narrated this tradition from Jabir from the Prophet ﷺ. Some of the narrators said in the version narrated by Yazid al-Faqir that they completed their second rak'ah. This has also been narrated by Simak al-Hanafi on the authority of Ibn 'Umar from the Prophet ﷺ something similar. Zaid b. Thabit also narrated from the Prophet ﷺ in like manner. This version adds: The people prayed on rak'ah and the Prophet ﷺ prayed two rak'ahs.  

أبو داود:١٢٤٦حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَحْيَى عَنْ سُفْيَانَ حَدَّثَنِي الأَشْعَثُ بْنُ سُلَيْمٍ عَنِ الأَسْوَدِ بْنِ هِلاَلٍ عَنْ ثَعْلَبَةَ بْنِ زَهْدَمٍ قَالَ كُنَّا مَعَ سَعِيدِ بْنِ الْعَاصِ بِطَبَرِسْتَانَ فَقَامَ فَقَالَ

أَيُّكُمْ صَلَّى مَعَ رَسُولِ اللَّهِ ﷺ صَلاَةَ الْخَوْفِ فَقَالَ حُذَيْفَةُ أَنَا فَصَلَّى بِهَؤُلاَءِ رَكْعَةً وَبِهَؤُلاَءِ رَكْعَةً وَلَمْ يَقْضُوا  

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

See similar narrations below:

Collected by Ṭabarānī
tabarani:13092al-Ḥasan b. ʿAlī al-Maʿmarī > Abū al-Ṭāhir b. al-Sarḥ > Rishdīn b. Saʿd > Muḥammad b. Sahm > Saʿīd b. al-Musayyib > Ibn ʿUmar

[Machine] The Prophet ﷺ prayed the prayer of fear with these (people) as one rak'ah and with those (people) as one rak'ah.  

الطبراني:١٣٠٩٢حَدَّثَنَا الْحَسَنُ بْنُ عَلِيٍّ الْمَعْمَرِيُّ ثنا أَبُو الطَّاهِرِ بْنُ السَّرْحِ ثنا رِشْدِينُ بْنُ سَعْدٍ عَنْ مُحَمَّدِ بْنِ سَهْمٍ عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ عَنِ ابْنِ عُمَرَ

أَنَّ النَّبِيَّ ﷺ «صَلَّى صَلَاةَ الْخَوْفِ بِهَؤُلَاءِ رَكْعَةً وَبِهَؤُلَاءِ رَكْعَةً»