Sahih al-Bukhari, Hadith 2913

Narrated Jabir: as above (Hadith No. 158). Narrated Jabir bin `Abdullah: That he participated in a Ghazwa (Holy-Battle) in the company of Allah's Messenger. Midday came upon them while they were in a valley having many thorny trees. The people dispersed to rest in the shade of the trees. The Prophet rested under a tree, hung his sword on it, and then slept. Then he woke up to find near to him, a man whose presence he had not noticed before. The Prophet said, "This (man) took my sword (out of its scabbard) and said, 'Who will save you from me.' I replied, 'Allah.' So, he put the sword back into its scabbard, and you see him sitting here." Anyhow, the Prophet did not punish him. (See Hadith No. 158)

حَدَّثَنَا أَبُو الْيَمَانِ، أَخْبَرَنَا شُعَيْبٌ، عَنِ الزُّهْرِيِّ، حَدَّثَنَا سِنَانُ بْنُ أَبِي سِنَانٍ، وَأَبُو سَلَمَةَ أَنَّ جَابِرًا، أَخْبَرَهُ‏.‏ حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعْدٍ، أَخْبَرَنَا ابْنُ شِهَابٍ، عَنْ سِنَانِ بْنِ أَبِي سِنَانٍ الدُّؤَلِيِّ، أَنَّ جَابِرَ بْنَ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ أَخْبَرَهُ أَنَّهُ، غَزَا مَعَ النَّبِيِّ صلى الله عليه وسلم فَأَدْرَكَتْهُمُ الْقَائِلَةُ فِي وَادٍ كَثِيرِ الْعِضَاهِ، فَتَفَرَّقَ النَّاسُ فِي الْعِضَاهِ يَسْتَظِلُّونَ بِالشَّجَرِ، فَنَزَلَ النَّبِيُّ صلى الله عليه وسلم تَحْتَ شَجَرَةٍ فَعَلَّقَ بِهَا سَيْفَهُ ثُمَّ نَامَ، فَاسْتَيْقَظَ وَعِنْدَهُ رَجُلٌ وَهْوَ لاَ يَشْعُرُ بِهِ‏.‏ فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ إِنَّ هَذَا اخْتَرَطَ سَيْفِي ‏"‏‏.‏ فَقَالَ مَنْ يَمْنَعُكَ قُلْتُ ‏"‏ اللَّهُ ‏"‏‏.‏ فَشَامَ السَّيْفَ، فَهَا هُوَ ذَا جَالِسٌ، ثُمَّ لَمْ يُعَاقِبْهُ‏.‏

sunnah.com