Ṣalāt al-Khawf — The Fear Prayer
A mercy from Allah that keeps the prayer standing even under the shadow of the sword.
The Ruling: A Prescribed Mercy
Ṣalāt al-Khawf — the Fear Prayer — is the way the obligatory prayer is performed when Muslims are engaged in, or under threat of, legitimate combat and cannot pray in the ordinary manner. Its legislation is established by the Book of Allah, the Sunnah of His Messenger ﷺ, and the practice of the Companions. It is not a separate prayer with its own count of rakʿahs; it is the same fard prayer, performed under altered conditions so that the congregation can remain vigilant against the enemy while still standing before their Lord.
The foundation is Allah's command that the Prophet ﷺ himself lead the congregation in this manner. Because the address in the verse is directed to the Prophet ﷺ ('when you are among them'), a minority of scholars held that this specific communal form was particular to him. The majority (Mālik, al-Shāfiʿī, Aḥmad, Abū Ḥanīfah and others), however, held that it remains legislated for the Ummah after him, since the address to the Prophet is an address to his community unless proven otherwise, and the Companions continued to pray it after his death. This latter view is the position of the overwhelming body of the people of knowledge.
وَإِذَا كُنتَ فِيهِمْ فَأَقَمْتَ لَهُمُ الصَّلَاةَ فَلْتَقُمْ طَائِفَةٌ مِّنْهُم مَّعَكَ وَلْيَأْخُذُوا أَسْلِحَتَهُمْ
And when you are among them and lead them in prayer, let a party of them stand [in prayer] with you and let them carry their arms.
Quran 4:102
The Evidence in the Book of Allah
Two passages establish the fear prayer. In Sūrat al-Nisāʾ, Allah first permits the shortening (qaṣr) of the prayer during travel when the harm of the disbelievers is feared, then details the congregational method of the fear prayer itself in the following verse. The mention of fear here describes the circumstance in which the ruling was revealed; it is not a condition for shortening, as the Sunnah later clarified.
وَإِذَا ضَرَبْتُمْ فِي الْأَرْضِ فَلَيْسَ عَلَيْكُمْ جُنَاحٌ أَن تَقْصُرُوا مِنَ الصَّلَاةِ إِنْ خِفْتُمْ أَن يَفْتِنَكُمُ الَّذِينَ كَفَرُوا ۚ إِنَّ الْكَافِرِينَ كَانُوا لَكُمْ عَدُوًّا مُّبِينًا
And when you travel throughout the land, there is no blame upon you for shortening the prayer, if you fear that those who disbelieve may harm you. Indeed, the disbelievers are ever to you a clear enemy.
Quran 4:101
That the fear clause is not a restriction was made explicit by ʿUmar ibn al-Khaṭṭāb, who was himself puzzled by the wording until he asked the Prophet ﷺ. This shows that qaṣr in travel is a general concession, while the communal manoeuvre of the fear prayer is the added provision for danger.
"Yahya b. Umayya said: I told 'Umar b. al-Khattab that Allah had said: "You may shorten the prayer only if you fear that those who are unbelievers may afflict you" (Qur'an, iv. 101), whereas the people are now safe. He replied: I wondered about it in the same way as you wonder about it, so I asked the Messenger of Allah (ﷺ) about it and he said: It is an act of charity which Allah has done to you, so accept His charity."
Sahih Muslim — site reader no. 1468, Kitab Salat al-MusafirinSahih
The second foundation is in Sūrat al-Baqarah, which addresses the most severe case — when the fighting is so intense that even the shift-based congregation is impossible. In that state the worshipper prays however he is able.
فَإِنْ خِفْتُمْ فَرِجَالًا أَوْ رُكْبَانًا ۖ فَإِذَا أَمِنتُمْ فَاذْكُرُوا اللَّهَ كَمَا عَلَّمَكُم مَّا لَمْ تَكُونُوا تَعْلَمُونَ
And if you fear [an enemy], then pray on foot or riding. But when you are secure, then remember Allah [in prayer], as He has taught you that which you did not [previously] know.
Quran 2:239
The Prophetic Method: Ibn ʿUmar's Description
The clearest transmitted description of the congregational fear prayer is that of ʿAbdullāh ibn ʿUmar (may Allah be pleased with them both), recorded in the two Ṣaḥīḥs. The army is divided into two parties (ṭāʾifatān): one prays behind the imām while the other stands guard, facing the enemy with weapons kept close; then they exchange positions so that no moment passes without a line of Muslims watching the foe.
"… 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."
Sahih al-Bukhari 942Sahih
The same account is preserved by Muslim. The two constants across the narration are that weapons are carried throughout, and that a guarding party always faces the enemy — the security of the Muslims and the standing of the prayer are safeguarded together.
"Ibn Umar reported that the Messenger of Allah (ﷺ) observed prayer in danger on some day (in this way): a group stood with him (the Holy Prophet) (for prayer) and the other group stood in front of the enemy. Then those who were with (him) observed one rak'ah of prayer and they went back and the others came and they observed one rak'ah (with him). Then both the groups completed one rak'ah each. Ibn Umar said: When there is greater danger, then observe prayer even on the ride or with the help of gestures in a standing posture."
Sahih Muslim — site reader no. 1836, Kitab Salat al-MusafirinSahih
Several Authentic Forms — the Ikhtilāf of Application
The Prophet ﷺ prayed the fear prayer on more than one occasion — at Dhāt al-Riqāʿ, ʿUsfān, Baṭn Nakhl and elsewhere — and the Companions who were present transmitted what they witnessed. As a result, several distinct forms are authentically reported: the two-party shift described by Ibn ʿUmar; the form of Sahl ibn Abī Ḥathmah in which the imām waits standing while a party completes a rakʿah; the form of Jābir; and others. Ibn al-Qayyim, in Zād al-Maʿād, gathered these and counted around six recognised forms, all traced back to the Prophet ﷺ.
Here the scholars differed, and it is a respected difference. Imām Aḥmad ibn Ḥanbal held that all the forms established from the Prophet ﷺ are permissible and may be chosen according to the tactical situation — the position many later verifiers consider strongest, because each form was itself a legislated response to the state of the battle. Others, such as some Ḥanafīs and Mālikīs, preferred a single form and read the variation as difference in circumstance rather than open choice. None of these positions rests on weak evidence; the divergence is one of preference among authentic reports, not of accepting versus rejecting the Sunnah.
When the Fighting Is Fierce
If the battle is fully joined — pursuit, clashing of ranks, or flight — so that even the shift-based congregation cannot be organised, the prayer is not dropped. The worshipper prays as he is able: standing on foot, or mounted, facing the qiblah or not, indicating the rukūʿ and sujūd by gestures (with the head lowered further for prostration). This is the plain meaning of 'then pray on foot or riding' (Quran 2:239).
Ibn ʿUmar transmitted this ruling directly from the Prophet ﷺ, adding to the description of the fear prayer that when the fear is greater still, one prays walking or mounted, facing the qiblah or otherwise — as recorded by al-Bukhārī. The principle the fuqahāʾ derive is decisive: the obligation of the prayer within its time is never lifted by fear; only its outward form is eased.
A Mercy That Keeps the Prayer Standing
The lesson of Ṣalāt al-Khawf is the immense weight Allah gives to the prayer. When most other obligations would be excused by mortal danger, the prayer is not cancelled — it is reshaped so that it can continue. A believer facing the enemy still turns to his Lord, weapon in hand, in shifts and gestures if need be. This is a mercy (rukhṣah) and a proof against those who take the prayer lightly in ease when the Prophet ﷺ and his Companions kept it even amid swords.
The fear prayer applies to a real, legitimate state of fear in warfare or the like — not to ordinary anxiety, and not as a device to lighten the prayer without cause. Because its forms and conditions are detailed and situation-dependent, the correct application in a given circumstance should be taken back to the established evidences and to the people of knowledge, upon the way of the Salaf: precise adherence to what is authentically reported, without addition or laxity.
Rulings from Quran & Hadith
Evidence-based answers to common masāʾil, each with its daleel.
📖Sahih al-Bukhari & Muslim
Read the authentic collections these rulings draw on.
❓Questions & Answers
500+ answered questions across belief, worship, and life.
Share this page as a poster
A 1080×1920 image made for phone screens — Stories, Status, Reels. It carries the heading and the link back here, so whoever you send it to can read the whole thing.
On a phone you can also long-press the poster and choose Save image. Every poster is on the poster page. Free to share — no attribution needed.