Abdullah bin Abbas reported,

The Messenger of Allah ﷺ led the prayer at Dhu Qarad. The people formed two rows behind him, one row directly behind him and another row facing the enemy. He prayed one rakah with the row behind him, then they moved to the position of the others, and the other group came forward and he prayed one rakah with them. They did not make up the missed rakah.

Azami 2911

Sahih

عن ابن عباس

أن رسول الله ﷺ صلى بذي قرد، وصف الناس خلفه صفين، صفا خلفه، وصفا موازي العدو، فصلى بالذي خلفه ركعة، ثم انصرف هؤلاء إلى مكان هؤلاء، وجاء أولئك فصلى بهم ركعة، ولم يقضوا.

الأعظمي 2911صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Prayer of fear
Section
Whoever said, "In fear there is one rakat"
Numbering
Jami al-Kamil 2911 (2nd edition)
Azami 2911