Prayer (Kitab Al-Salat): Detailed Rules of Law about the Prayer during Journey
Dawud :: Book 4 : Hadith 1236
Narrated AbuHurayrah:
Urwah ibn az-Zubayr reported that Marwan ibn al-Hakam asked AbuHurayrah: Did you pray in time of danger with the Apostle of Allah (peace_be_upon_him)?
AbuHurayrah replied: Yes. Marwan then asked: When? AbuHurayrah said: On the occasion of the Battle of Najd. The Apostle of Allah (peace_be_upon_him) stood up to offer the afternoon prayer. One section stood with him (to pray) and the other was standing before the enemy, and their backs were towards the qiblah. The Apostle of Allah (peace_be_upon_him) uttered the takbir and all of them too uttered the takbir, i.e. those who were with him and those who were facing the enemy. Then the Apostle of Allah (peace_be_upon_him) offered one rak'ah and the section that was with him also prayed one rak'ah. He then prostrated himself and those who were with him also prostrated, while the other section was standing before the enemy.
The Apostle of Allah (peace_be_upon_him) then stood up and the section with him also stood up. They went and faced the enemy and the section that was previously facing the enemy stepped forward. They bowed and prostrated while the Apostle of Allah (peace_be_upon_him) was standing in the same position. Then they stood up and the Apostle of Allah (may peace be upon) prayed another rak'ah and all of them bowed and prostrated along with him. After that the section that was standing before the enemy came forward and they bowed and prostrated, while the Apostle of Allah (peace_be_upon_him) remained seated and also those who were with him. The salutation then followed. The Apostle of Allah (peace_be_upon_him) uttered the salutation and all of them uttered it together. The Apostle of Allah (peace_be_upon_him) prayed two rak'ahs and each of the two sections prayed one rak'ah with him (and the other by themselves).