as above (Hadith No. 158). Narrated Jabir bin ʿAbdullah: That he participated in a Ghazwa (Holy-Battle) in the company of Messenger of Allah ﷺ. 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) (Using translation from Bukhārī 2913)
أَخْبَرَهُ أَنَّهُ غَزَا مَعَ رَسُولِ اللهِ ﷺ غَزْوَةً قِبَلَ نَجْدٍ فَأَدْرَكَتْهُمُ الْقَائِلَةُ يَوْمًا فِي وَادٍ كَثِيرِ الْعِضَاهِ فَنَزَلَ رَسُولُ اللهِ ﷺ وَتَفَرَّقَ النَّاسُ فِي الْعِضَاهِ يَسْتَظِلُّونَ بِالشَّجَرِ وَنَزَلَ رَسُولُ اللهِ ﷺ تَحْتَ شَجَرَةٍ فَعَلَّقَ بِهَا سَيْفِهِ قَالَ رَسُولُ اللهِ ﷺ لِرَجُلٍ عِنْدَهُ «إِنَّ هَذَا اخْتَرَطَ سَيْفِي وَأَنَا نَائِمٌ فَاسْتَيْقَظْتُ وَهُوَ فِي يَدِهِ صَلْتًا» فَقَالَ لِي «مَنْ يَمْنَعُكَ مِنِّي؟» فَقُلْتُ «اللهُ» فَقَالَ لِي «مَنْ يَمْنَعُكَ مِنِّي؟» فَقُلْتُ «اللهُ فَشَامَ السَّيْفَ وَجَلَسَ وَهُوَ ذَا جَالِسٌ ثُمَّ لَمْ يُعَاقِبْهُ رَسُولُ اللهِ ﷺ»