English translation
484. Narrated Jâbir (bin 'Abdullâh) رضي الله عنهما : We were in the company of the Prophet ﷺ (during the battle of Dhat-ar-Riqa'), and we came across a shady tree and we left it for the Prophet ﷺ (to take rest under its shade). A man from the pagans came while the Prophet's sword was hanging on a branch of the tree. He took it out of its sheath secretly and said (to the Prophet ﷺ), "Are you afraid of me?" The Prophet ﷺ said, "No." He said, "Who can save you from me?" The Prophet ﷺ said, "Allâh." The companions of the Prophet ﷺ threatened him, then the Iqâma for As-Salât (the prayer) was announced and the Prophet ﷺ offered a two Rak'a, Fear Salât with one of the two batches, and the batch went aside, then again he offered a two Rak'a (prayer) with the second batch. So the Prophet ﷺ offered four Rak'a but the people offered two Rak'a only. (Sahîh Al-Bukhârî, Hadîth No. 458, Vol. 5)
Arabic text
حديث جَابِرٍ، قَالَ: كُنَّا مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِذَاتِ الرِّقَاعِ، فَإِذَا أَتَيْنَا عَلَى شَجَرَةٍ ظَلِيلَةٍ تَرَكْنَاهَا لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، فَجَاءَ رَجُلٌ مِنَ الْمُشْرِكِينَ وَسَيْفُ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مُعَلَّقٌ بِالشَّجَرَةِ، فَاخْتَرَطَهُ، فَقَالَ: تَخَافُنِي قَالَ: لاَ قَالَ: فَمَنْ يَمْنَعُكَ مِنِّي قَالَ: اللهُ فَتَهَدَّدَهُ أَصْحَابُ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، وَأُقِيمَتِ الصَّلاَةُ، فَصَلَّى بِطَائِفَةٍ رَكْعَتَيْنِ ثُمَّ تَأَخَّرُوا، وَصَلَّى بِالطَّائِفَةِ الأُخْرَى رَكْعَتَيْنِ؛ وَكَانَ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَرْبَعٌ، وَلِلْقَوْمِ رَكْعَتَانِ