Sahih Muslim 1379: The Prayer of the Traveller and Shortening It
It is narrated from Hazrat Jabir (ra) bin Abdullah that he said: I was present with the Messenger of Allah (saw) in the Prayer of fear (Salat-ul-Khauf). He (saw) formed us into two rows, one row behind the Messenger of Allah (saw), while the enemy was between us and the Qiblah. So the Prophet (saw) said “Allahu Akbar”, and we all said “Allahu Akbar” too. Then he (saw) bowed (Ruku) and we all bowed too. Then he (saw) raised his head from the bowing and we raised (ours) too. Then he (saw) and the row that was near him went down in prostration (Sajdah), and the other row remained standing facing the enemy. When the Messenger of Allah (saw) had prostrated and the row near him (saw) had stood up, the other row went down in prostration. Then they stood up, and the other row came forward and the front row went back. Then the Prophet (saw) bowed and we all bowed too. Then he (saw) raised his head from the bowing and we all raised (ours) too. Then he (saw) went down in prostration, and the row that had been at the back in the first rak'ah and was now near also prostrated. And the back row remained standing facing the enemy. When the Prophet (saw) and the row that was near him (saw) had prostrated, the other row went down in prostration. When they had performed the prostrations, the Prophet (saw) turned his face for the Salam, and we all (also) turned our faces for the Salam. Hazrat Jabir (ra) said: Just as these guards of yours do with their commanders.
AI-translated by Islam-Today