The Book of Prayers (Kitab Al-Salat)
Muslim :: Book 4 : Hadith 1830
Jabir reported: We went forward with the Messenger of Allah (may peace be upon him) and when we reached Dhat ar-Riqa', we came to a shady tree which -we left for him One of the polytheists came there and, seeing the sword of the Messenger (may peace be upon him) hanging by a free. took it up. drew it from the scabbard and said to the Messenger of Allah (may peace be upon him): Are you afraid of Me? He (the Holy Prophet) said: No. He again said: Who would protect you from me? He said: Allah will protect me from you. The Companions of the Messenger of Allah (may peace be upon him) threatened him. He sheathed the sword and hung it up. Then call to prayer was made and he (the Holy Prophet) led a group in two rak'ah. Then (the members of this group) withdrew and he led the second group in two rak'ah. So the Messenger of Allah (may peace be upon him) observed four rak'ah and people observed two rak'ah.