Sahih Muslim | Book 30 | Chapter 4

Narrated by Jabir b. Abdullah
Jabir b. Abdullah reported: We went along with Allah's Messenger (may peace be upon him) on an expedition towards Najd and Allah's Messenger (may peace be upon him) found us in a valley abounding in thorny trees. Allah's Messenger (may peace be upon him) stayed for rest under a tree and he suspended his sword by one of its branches under which he was taking rest. The persons scattered in the valley and they also began to take rest under the shade of trees, and Allah's Messenger (may peace be upon him) said: A person came to me while I was asleep and he took hold of the sword. I woke up and found him standing upon my head and I had hardly become alert (and saw) that the sword was in his hand. And he said: Who can protect you from me? I said: Allah. He again said: Who can protect you from me? I said: Allah. He put his sword in the sheath (and you can see) this man sitting here. Allah's Messenger (may peace be upon him) did not in any way touch him.

Narrated by Jabir b. 'Abdullah al-Ansiri
Jabir b. 'Abdullah al-Ansiri, who was one amongst the Companions of Allah's Apostle (may peace be upon him), reported that he went on an expedition along with Allah's Messenger (may peace be upon him) towards Najd and Allah's Messenger (may peace be upon him) stayed there, and when Allah's Messenger (may peace be upon him) came back he also came back along with him. They, for one day, stayed for rest; the rest of the hadith is the same.

Narrated by Jabir b. 'Abdullah
Jabir b. 'Abdullah reported: We went along with Allah's Messenger (may peace be upon him) and as we reached the place Dhat-ur-Riqa'; the rest of the hadith is the same, but there is no mention of the word that Allah's Messenger (may peace be upon him) did not harm him.