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 Messenger of Allah ﷺ I in Najd. We faced the enemy and arranged ourselves in rows. Then Messenger of Allah ﷺ stood up to lead the prayer and one party stood to pray with him while the other faced the enemy. Messenger of Allah ﷺ and the former party bowed and performed two prostrations. Then that party left and took the place of those who had not prayed. Messenger of Allah ﷺ 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.' "
سَأَلْتُهُ هَلْ صَلَّى النَّبِيُّ ﷺ يَعْنِي صَلاَةَ الْخَوْفِ قَالَ أَخْبَرَنِي سَالِمٌ أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ ؓ قَالَ غَزَوْتُ مَعَ رَسُولِ اللَّهِ ﷺ قِبَلَ نَجْدٍ فَوَازَيْنَا الْعَدُوَّ فَصَافَفْنَا لَهُمْ فَقَامَ رَسُولُ اللَّهِ ﷺ يُصَلِّي لَنَا فَقَامَتْ طَائِفَةٌ مَعَهُ تُصَلِّي وَأَقْبَلَتْ طَائِفَةٌ عَلَى الْعَدُوِّ وَرَكَعَ رَسُولُ اللَّهِ ﷺ بِمَنْ مَعَهُ وَسَجَدَ سَجْدَتَيْنِ ثُمَّ انْصَرَفُوا مَكَانَ الطَّائِفَةِ الَّتِي لَمْ تُصَلِّ فَجَاءُوا فَرَكَعَ رَسُولُ اللَّهِ ﷺ بِهِمْ رَكْعَةً وَسَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ فَقَامَ كُلُّ وَاحِدٍ مِنْهُمْ فَرَكَعَ لِنَفْسِهِ رَكْعَةً وَسَجَدَ سَجْدَتَيْنِ