Sahl bin Abu Hathma reported,

Concerning the prayer offered in time of danger, he said, "The imam stands facing the qibla, and one group stands with him while another group faces the enemy, with their faces toward the enemy. He leads the first group in one rakat, then they bow on their own and prostrate twice on their own where they stand. Then they move to the position of the others, and the others come forward, and he leads them in one rakat with two prostrations. So he has completed two rakats and they have completed one. Then they perform one more rakat with two prostrations."Yahya said to me, "Write it down alongside it." I do not have the hadith memorized, but it is like the hadith of Yahya bin Saeed Ansari.Abu Isa said, "This is a good and authentic hadith. Yahya bin Saeed Ansari did not trace it back to the Prophet from Qasim bin Muhammad, and likewise the students of Yahya bin Saeed Ansari narrated it as a statement stopping short of the Prophet. But Shuba traced it back to the Prophet, reporting it from Abdul-Rahman bin Qasim bin Muhammad."

Tirmidhi 566

Sahih

قال أبو عيسى قال محمد بن بشار سألت يحيى بن سعيد عن هذا الحديث فحدثني عن شعبة عن عبد الرحمن بن القاسم عن أبيه عن صالح بن خوات عن سهل بن أبي حثمة عن النبي ﷺ بمثل حديث يحيى بن سعيد الأنصاري و قال لي يحيى اكتبه إلى جنبه ولست أحفظ الحديث ولكنه مثل حديث يحيى بن سعيد الأنصاري قال أبو عيسى وهذا حديث حسن صحيح لم يرفعه يحيى بن سعيد الأنصاري عن القاسم بن محمد وهكذا روى أصحاب يحيى بن سعيد الأنصاري موقوفا ورفعه شعبة عن عبد الرحمن بن القاسم بن محمد

الترمذي 566صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Travel
Chapter
Prayer of fear
Numbering
Darussalam 566
Tirmidhi 566