Sayyidah Aishah (may Allah be pleased with her) said that the Messenger of Allah (peace and blessings be upon him) led the people in the fear prayer at Dhat al-Riqa'. The Prophet (peace and blessings be upon him) divided them into two parts: one row was behind him (peace and blessings be upon him) and the other row was facing the enemy. He (peace and blessings be upon him) said 'Allahu akbar' (Allah is the Greatest), and those who had formed a row behind him (peace and blessings be upon him) also said 'Allahu akbar' (Allah is the Greatest). Then he (peace and blessings be upon him) bowed and they bowed too. He (peace and blessings be upon him) prostrated and they prostrated. Then he (peace and blessings be upon him) raised his head and they raised their heads too; then he (peace and blessings be upon him) remained sitting. Then they made the second prostration by themselves, then stood up and walked backwards on their heels until they stood behind the others. Then the other group came and formed a row behind the Messenger of Allah (peace and blessings be upon him). Then they said 'Allahu akbar' (Allah is the Greatest). Then they bowed. Then the Prophet (peace and blessings be upon him) made his second prostration, and they prostrated with him (peace and blessings be upon him). Then the Prophet (peace and blessings be upon him) stood for the second rak'ah, and they made the second prostration. Then both groups stood. They formed rows behind the Prophet (peace and blessings be upon him); the Prophet (peace and blessings be upon him) made one ruku' and all of them made ruku' too. Then he (peace and blessings be upon him) prostrated and all of them prostrated too; then he (peace and blessings be upon him) raised his head and they raised their heads too. The Prophet (peace and blessings be upon him) did all of this quickly; he (peace and blessings be upon him) spared no effort in lightening it and led a light prayer as far as he could. Then the Prophet (peace and blessings be upon him) gave the salam and they gave the salam too; then the Prophet (peace and blessings be upon him) stood up, and indeed the people had shared with him (peace and blessings be upon him) in his entire prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخوف / 6058