(84) باب مَنْ عَلَّقَ سَيْفَهُ بِالشَّجَرِ فِي السَّفَرِ عِنْدَ الْقَائِلَةِ
Narrated Jabir bin `Abdullah:
That he proceeded in the company of Allah's Messenger (ﷺ) towards Najd to participate in a Ghazwa. (Holybattle) When Allah's Messenger (ﷺ) returned, he too returned with him. Midday came upon them while they were in a valley having many thorny trees. Allah's Messenger (ﷺ) and the people dismounted and dispersed to rest in the shade of the trees. Allah's Messenger (ﷺ) rested under a tree and hung his sword on it. We all took a nap and suddenly we heard Allah's Messenger (ﷺ) calling us. (We woke up) to see a bedouin with him. The Prophet (ﷺ) said, "This bedouin took out my sword while I was sleeping and when I woke up, I found the unsheathed sword in his hand and he challenged me saying, 'Who will save you from me?' I said thrice, 'Allah.' The Prophet (ﷺ) did not punish him but sat down.
Reference: Sahih al-Bukhari 2910
In-book reference: Book 56, Hadith 123
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 52, Hadith 158