(13) باب مَنْ قَالَ يَقُومُ صَفٌّ مَعَ الإِمَامِ وَصَفٌّ وِجَاهَ الْعَدُوِّ
Narrated Sahl b. Abi Hathmah:
The Prophet (ﷺ) prayed in time of danger and divided them (the people) behind him in two rows. He then led those who were near him in one rak'ah. Then he stood and remained standing till those who were in second row offered one rak'ah. Thereafter they came forward and those who were in front of them (in the first row) stepped backward. The Prophet (ﷺ) led them in one rak'ah of prayer. He sat down till those who were in the second row completed on rak'ah. He then uttered the salutation.
Reference: Sunan Abi Dawud 1237
In-book reference: Book 4, Hadith 40
English translation: Book 4, Hadith 1233