Hadithcore
Sahih al-Bukhari, 942
sahih

Narrated Shu'aib:

I asked Az-Zuhri, "Did the Prophet (ﷺ) ever offer the Fear Prayer?" Az-Zuhri said, "I was told by Salim that `Abdullah bin `Umar I had said, 'I took part in a holy battle with Allah's Messenger (ﷺ) I in Najd. We faced the enemy and arranged ourselves in rows. Then Allah's Messenger (ﷺ) stood up to lead the prayer and one party stood to pray with him while the other faced the enemy. Allah's Messenger (ﷺ) and the former party bowed and performed two prostrations. Then that party left and took the place of those who had not prayed. Allah's Messenger (ﷺ) prayed one rak`a (with the latter) and performed two prostrations and finished his prayer with Taslim. Then everyone of them bowed once and performed two prostrations individually.' "

حَدَّثَنَا أَبُو الْيَمَانِ، قَالَ أَخْبَرَنَا شُعَيْبٌ، عَنِ الزُّهْرِيِّ، قَالَ سَأَلْتُهُ هَلْ صَلَّى النَّبِيُّ صلى الله عليه وسلم يَعْنِي صَلاَةَ الْخَوْفِ قَالَ أَخْبَرَنِي سَالِمٌ أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ ـ رضى الله عنهما ـ قَالَ غَزَوْتُ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم قِبَلَ نَجْدٍ، فَوَازَيْنَا الْعَدُوَّ فَصَافَفْنَا لَهُمْ فَقَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُصَلِّي لَنَا فَقَامَتْ طَائِفَةٌ مَعَهُ تُصَلِّي، وَأَقْبَلَتْ طَائِفَةٌ عَلَى الْعَدُوِّ وَرَكَعَ رَسُولُ اللَّهِ صلى الله عليه وسلم بِمَنْ مَعَهُ، وَسَجَدَ سَجْدَتَيْنِ، ثُمَّ انْصَرَفُوا مَكَانَ الطَّائِفَةِ الَّتِي لَمْ تُصَلِّ، فَجَاءُوا، فَرَكَعَ رَسُولُ اللَّهِ صلى الله عليه وسلم بِهِمْ رَكْعَةً، وَسَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ، فَقَامَ كُلُّ وَاحِدٍ مِنْهُمْ فَرَكَعَ لِنَفْسِهِ رَكْعَةً وَسَجَدَ سَجْدَتَيْنِ‏.‏

References2 variants
In-Book Reference
Book 12, Hadith 1
USC-MSA web (English) reference
Vol. 2, Book 14, Hadith 64 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prayer of Peril (Fear) was legislated so that the Muslims could fulfil the obligation of prayer without exposing themselves to the danger of being killed while fighting the enemies of Allah. It is intended to lighten the burdens of the Muslims who are engaged in the fight, so their enemy does not take them out during their prayer. This hadeeth transmitted by ‘Abdullah ibn ʿUmar (may Allah be pleased with them) explains one of the forms of the Prayer of Fear. He reports that he went into battle and war alongside the Messenger of Allah ﷺin Najd, which refers to the expanse of Arab lands between Hijaaz and Iraq. Najd today nests in the heart of the Arabian Peninsula, the middle of which is the city of Riyadh, the capital of the Saudi Arabian Kingdom. It consists of many provinces, including al-Qaseem, Sadeer, al-Aflaajj, al-Yamaamah, al-Wushum, and others. He said: “We faced the enemy” – which means, they turned toward the enemy and paralleled them, and they established rows facing their direction. After that, the Messenger of Allah ﷺstood in prayer as the time for prayer had commenced, and the battle and fighting had not yet started. A group joined the Prophet ﷺ and prayed with him while the other group stood facing the enemy, guarding those who are [performing the] prayer. As the Messenger of Allah ﷺfinished the first unit of the prayer with the first group, they went to the place of the other group that had not yet prayed. Then, the group that was guarding came forth and joined the Messenger of Allah ﷺ in the prayer, so he led them in one unit of prayer. Then, he concluded the prayer with the tasleem. Thereafter, every one of them continued the prayer individually and prayed one more unit. This means that every group prayed one unit with the Prophet ﷺ, then they stood after the Prophet ﷺ performed the tasleem to begin the other unit. Many forms of the Prayer of Peril (Fear) have been relayed, and this is one of the reports that describes how the Prophet ﷺ prayed it. He had prayed it differently on different days, doing what was most cautious for prayer and clearest for defence. Thus, it (the prayer) was offered in many ways, but they are congruent in form. The hadeeth shows the keenness of the Prophet ﷺ to perform the obligatory prayer within its time under any circumstance, even in times of war. It indicates the importance of congregational prayer, because if it was legislated during times of fear, then one must firstly be attentive to it in [times of] peace and contentment. From the other benefits that we can conclude from this hadeeth is that Muslims should be cautious of the enemy during the time of battle in every way possible. Furthermore, it shows that the religion commands the worship that protects the person before Allah in the Hereafter, and it commands betaking to that which protects the believer in this world. It demonstrates how Islam made the fulfilment of prayer easy on those who are accountable in Islam [i.e., they are obligated to offer the five prayers]. .
Related hadiths2
Compare isnād across 2 related chains →