Sahih Muslim 1383: The Prayer of the Traveller and Shortening It
It is narrated from Hazrat Jabir (ra) that he said: We were coming with the Messenger of Allah (saw) until we reached Dhat-ur-Riqa'. He said: When we came to a shady tree, we left it for the Messenger of Allah (saw). He said: A man from among the idolaters came, while the sword of the Messenger of Allah (saw) was hanging on the tree. He took the sword of the Prophet (saw) of Allah (saw), drew it and said to the Messenger of Allah (saw): Are you afraid of me? He (saw) said: “No.” He said: Who will save you from me? He (saw) said: “Allah will save me from you.” The narrator said: Then the Companions (ra) of the Messenger of Allah (saw) threatened him. Then he (saw) sheathed the sword and hung it up. The narrator said: Then the call to prayer (Adhan) was given for the Prayer (Salat), and the Holy Prophet (saw) led one group in two rak'at. Then they went back, and he led the other group too in two rak'at. The narrator said: The Messenger of Allah (saw) had four rak'at and the people two rak'at each.
AI-translated by Islam-Today