Jabir bin Abdullah reported,

We went out on a military campaign with the Messenger of Allah ﷺ toward Najd. The Messenger of Allah ﷺ caught up with us in a valley thick with thorny acacia trees. The Messenger of Allah ﷺ dismounted under a tree and hung his sword on one of its branches, while the people scattered throughout the valley seeking shade beneath the trees.The Messenger of Allah ﷺ then said, "A man came to me while I was asleep and took the sword. I woke up to find him standing over me with the sword unsheathed in his hand. He said to me, 'Who will protect you from me?'I replied, 'Allah.'Then a second time he said, 'Who will protect you from me?'I replied, 'Allah.'He then sheathed the sword, and here he is sitting."The Messenger of Allah ﷺ did not punish him.

Muslim 5950

Sahih

حدثنا عبد بن حميد أخبرنا عبد الرزاق أخبرنا معمر عن الزهري عن أبي سلمة عن جابر ح و حدثني أبو عمران محمد بن جعفر بن زياد واللفظ له أخبرنا إبراهيم يعني ابن سعد عن الزهري عن سنان بن أبي سنان الدؤلي

عن جابر بن عبد الله قال

غزونا مع رسول الله ﷺ غزوة قبل نجد فأدركنا رسول الله ﷺ في واد كثير العضاه فنزل رسول الله ﷺ تحت شجرة فعلق سيفه بغصن من أغصانها قال وتفرق الناس في الوادي يستظلون بالشجر قال فقال رسول الله ﷺ إن رجلا أتاني وأنا نائم فأخذ السيف فاستيقظت وهو قائم على رأسي فلم أشعر إلا والسيف صلتا في يده فقال لي من يمنعك مني قال قلت الله ثم قال في الثانية من يمنعك مني قال قلت الله قال فشام السيف فها هو ذا جالس ثم لم يعرض له رسول الله ﷺ

مسلم 5950صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
His reliance upon Allah and the protection of Allah, Most High, for him from the people
Numbering
Darussalam 5950
Muslim 5950