Al-Ilmam bi-Ahadith al-Ahkam 280
وَرَوَى البُخَارِيّ من حَدِيث شُعَيْب، عَن الزُّهْرِيّ، قَالَ: سَأَلته هَل صَلَّى النَّبِي ﷺ- يَعْنِي - صَلَاة الْخَوْف؟ فَقَالَ: أَخْبرنِي سَالم بن عبد الله بن عمر: أَن عبد الله بن عمر قَالَ: غزوت مَعَ النَّبِي ﷺ قِبَلَ نجد، فوازينا الْعَدو، فصاففناهم، فَقَالَ رَسُول الله ﷺ ﷺ يُصَلِّي لنا، فَقَامَتْ طَائِفَة مَعَه، وَأَقْبَلت طَائِفَة عَلَى الْعَدو، فَرَكَعَ رَسُول الله ﷺ بِمن مَعَه وَسجد سَجْدَتَيْنِ، ثمَّ انصرفوا مَكَان الطَّائِفَة الَّتِي لم تصلِّ، فجاؤوا فَرَكَعَ رَسُول الله ﷺ بهم رَكْعَة وَسجد سَجْدَتَيْنِ، ثمَّ سلم بهم . فَقَامَ كل وَاحِد مِنْهُم فَرَكَعَ لنَفسِهِ رَكْعَة، وَسجد سَجْدَتَيْنِ ". وَرَوَاهُ مُسلم من حَدِيث نَافِع، عَن ابْن عمر، بِلَفْظ آخر، وَفِي آخِره: قَالَ: وَقَالَ ابْن عمر: " فَإِذا كَانَ خوف أَكثر من ذَلِك فصلِّ رَاكِبًا وَقَائِمًا تومئ إِيمَاء ".
And al-Bukhari narrated, from the hadith of Shuʿayb, from az-Zuhri, who said: I asked him whether the Prophet ﷺ prayed — meaning — the fear prayer. He said: Salim ibn ʿAbdullah ibn ʿUmar informed me that ʿAbdullah ibn ʿUmar said: I went on a campaign with the Prophet ﷺ towards Najd. We faced the enemy and lined up against them. The Messenger of Allah ﷺ stood to lead us in prayer, and a group stood with him while a group faced the enemy. The Messenger of Allah ﷺ bowed with those who were with him and prostrated twice. Then they went to the place of the group that had not prayed, and they came, and the Messenger of Allah ﷺ bowed one rakʿah with them and prostrated twice, then gave the salam. Then each one of them stood and bowed one rakʿah by himself and prostrated twice. And Muslim narrated it from the hadith of Nafiʿ, from Ibn ʿUmar, with other wording, and at its end: He said: And Ibn ʿUmar said: "If the fear is greater than that, then pray riding or standing, making gestures."