Abdullah bin Abbas reported,

The Messenger of Allah ﷺ performed the prayer of fear at Dhu Qarad, a place in the territory of Banu Sulaym. The people lined up behind him in two rows, one row facing the enemy and another row behind him. He led the row nearest to him in one rak'ah, then those in the front row moved back to take the position of those in the rear, and those in the rear moved forward to take the position of the front row, and he led them in another rak'ah.

Ahmad 2063

Sahih

حدثنا وكيع حدثنا سفيان عن أبي بكر بن أبي الجهم بن صخير عن عبيد الله بن عبد الله بن عتبة

عن ابن عباس قال

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

أحمد 2063صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 2063
Ahmad 2063