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.
nasai-kubra:522ʿImrān b. Mūsá > ʿAbd al-Wārith > Yūnus > al-Ḥasan > Jābir b. ʿAbdullāh

[Machine] The Messenger of Allah ﷺ performed the prayer of fear with his companions. He prayed two units of prayer and the others faced their enemies. Then he saluted and the others came and he prayed two units with them and then saluted. So the Messenger of Allah ﷺ prayed four units and the people prayed two units each.  

الكبرى للنسائي:٥٢٢أَخْبَرَنَا عِمْرَانُ بْنُ مُوسَى عَنْ عَبْدِ الْوَارِثِ قَالَ حَدَّثَنَا يُونُسُ عَنِ الْحَسَنِ عَنْ جَابِرِ بْنِ عَبْدِ اللهِ

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