Sahih Muslim
Sahih Muslim 839c
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا يَحْيَى بْنُ آدَمَ، عَنْ سُفْيَانَ، عَنْ مُوسَى بْنِ، عُقْبَةَ عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، قَالَ صَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم صَلاَةَ الْخَوْفِ فِي بَعْضِ أَيَّامِهِ فَقَامَتْ طَائِفَةٌ مَعَهُ وَطَائِفَةٌ بِإِزَاءِ الْعَدُوِّ فَصَلَّى بِالَّذِينَ مَعَهُ رَكْعَةً ثُمَّ ذَهَبُوا وَجَاءَ الآخَرُونَ فَصَلَّى بِهِمْ رَكْعَةً ثُمَّ قَضَتِ الطَّائِفَتَانِ رَكْعَةً رَكْعَةً - قَالَ - وَقَالَ ابْنُ عُمَرَ فَإِذَا كَانَ خَوْفٌ أَكْثَرَ مِنْ ذَلِكَ فَصَلِّ رَاكِبًا أَوْ قَائِمًا تُومِئُ إِيمَاءً .
Abu Bakr ibn Abi Shayba narrated to us; Yahya ibn Adam narrated to us, from Sufyan, from Musa ibn 'Uqba, from Nafi', from Ibn 'Umar, who said: On one occasion the Messenger of Allah (ﷺ) performed the prayer of danger. One group stood with him while another faced the enemy. He prayed one rak'ah with those who were with him, then they left and the others came, and he prayed one rak'ah with them. Then each of the two groups completed one rak'ah. Ibn 'Umar said: If the danger is greater than that, pray mounted or standing, making gestures.
Translation notes
This version distinguishes the sequence for ordinary danger from the more intense danger in which prayer is performed mounted or standing with gestures.