We went forward with the Messenger of Allah ﷺ 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 ﷺ hanging by a free. took it up. drew it from the scabbard and said to the Messenger of Allah ﷺ: 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 ﷺ 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 ﷺ observed four rak'ah and people observed two rak'ah. (Using translation from Muslim 843a)
أَقْبَلْنَا مَعَ رَسُولِ اللهِ ﷺ حَتَّى إِذَا كُنَّا بِذَاتِ الرِّقَاعِ قَالَ كُنَّا إِذَا أَتَيْنَا عَلَى شَجَرَةٍ ظَلِيلَةٍ تَرَكْنَاهَا لِرَسُولِ اللهِ ﷺ فَجَاءَ رَجُلٌ مِنَ الْمُشْرِكِينَ وَسَيْفُ رَسُولِ اللهِ ﷺ مُعَلَّقٌ بِشَجَرَةٍ فَأَخَذَ سَيْفَ نَبِيِّ اللهِ ﷺ فَاخْتَرَطَهُ ثُمَّ قَالَ لِرَسُولِاللهِ ﷺ أَتَخَافُنِي؟ قَالَ لَا قَالَ فَمَنْ يَمْنَعُكَ مِنِّي؟ قَالَ اللهُ يَمْنَعُنِي مِنْكَ قَالَ فَتَهَدَّدَهُ أَصْحَابُ رَسُولِ اللهِ ﷺ فَأَغْمَدَ السَّيْفَ وَعَلَّقَهُ فَنُودِيَ بِالصَّلَاةِ فَصَلَّى بِطَائِفَةٍ رَكْعَتَيْنِ وَتَأَخَّرُوا وَصَلَّى بِالطَّائِفَةِ الْأُخْرَى رَكْعَتَيْنِ فَكَانَتْ لِرَسُولِ اللهِ ﷺ أَرْبَعُ رَكَعَاتٍ وَلِلْقَوْمِ رَكْعَتَانِ