Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) said: We came with the Prophet (peace and blessings be upon him) to Dhat al-Riqa'. Whenever we came to a shady tree, we would leave it for the Prophet (peace and blessings be upon him). A man from the polytheists came while his (peace and blessings be upon him) sword was hanging from a tree. He took hold of the sword of the Prophet (peace and blessings be upon him), drew it, and said to the Messenger of Allah (peace and blessings be upon him): Are you afraid of me? He (peace and blessings be upon him) said: "No." He said: Who will protect you from me? He (peace and blessings be upon him) said: "Allah! He will protect me from you." The Companions of the Messenger of Allah (peace and blessings be upon him) threatened him. He put the sword back into its sheath and hung it on the tree. The call to prayer was given, and he (peace and blessings be upon him) led one group in two rak'ahs. Then they moved back, and the Prophet (peace and blessings be upon him) led the other group in two rak'ahs. Thus the Prophet (peace and blessings be upon him) had four rak'ahs and the people had two rak'ahs each.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الخوف / 6033