Mishkat al-Masabih 1422
Jabir said:
We went forward with God’s Messenger, and when we reached Dhat ar-Riqa‘ we came to a shady tree which we left for him. One of the polytheists came along and seeing the sword of God’s Messenger hanging on a tree he took it, drew it from the scabbard and said to him, "Are you afraid of me?” On being told that he was not, he asked, “Who will protect you from me?” He replied, “God will protect me from you.” Then the companions of God’s Messenger threatened him, and he sheathed the sword and hung it up. The call to prayer was made and he led a section in two rak'as , after which they withdrew and he led the other section in two rak'as , so that God’s Messenger prayed four rak'as and the people prayed two. 

(Bukhari and Muslim.)
وَعَنْ جَابِرٍ قَالَ: أَقْبَلْنَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ حَتَّى إِذْ كُنَّا بِذَاتِ الرِّقَاعِ قَالَ: كُنَّا إِذَا أَتَيْنَا عَلَى شَجَرَةٍ ظَلِيلَةٍ تَرَكْنَاهَا لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: فَجَاءَ رَجُلٌ مِنَ المشكرين وَسَيْفُ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مُعَلَّقٌ بِشَجَرَةٍ فَأَخَذَ سَيْفَ نَبِيِّ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَاخْتَرَطَهُ فَقَالَ لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: أَتَخَافُنِي؟ قَالَ: «لَا» . قَالَ: فَمَنْ يَمْنَعُكَ مِنِّي؟ قَالَ: «اللَّهُ يَمْنَعُنِي مِنْك» . قَالَ: فَتَهَدَّدَهُ أَصْحَابُ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَغَمَدَ السَّيْفَ وَعَلَّقَهُ قَالَ: فَنُودِيَ بِالصَّلَاةِ فَصَلَّى بِطَائِفَةٍ رَكْعَتَيْنِ ثُمَّ تَأَخَّرُوا وَصَلَّى بِالطَّائِفَةِ الْأُخْرَى رَكْعَتَيْنِ قَالَ: فَكَانَتْ لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَرْبَعُ رَكَعَاتٍ وَلِلْقَوْمِ رَكْعَتَانِ