Jabir (May Allah be pleased with him) reported:
I went in an expedition along with the Prophet (ﷺ) in the direction of Najd. When Messenger of Allah (ﷺ) returned, I also returned with him. Then the mid-day sleep overtook us in a valley full of prickly shrubs. Messenger of Allah (ﷺ) got down and the people scattered around seeking shade under the trees. Messenger of Allah (ﷺ) hang up his sword on the branch of a tree. We were enjoying a sleep when Messenger of Allah (ﷺ) called us, and lo! There was a desert Arab bedouin near him. He (ﷺ) said, "This man brandished my sword over me while I was asleep. I woke up and saw it in his hand unsheathed. He asked: `Who will protect you from me?' I replied: 'Allah' - thrice". He did not punish him and sat down.[Al-Bukhari and Muslim].In another narration, Jabir (May Allah be pleased with him) said: We accompanied Messenger of Allah (ﷺ) in the campaign of Dhat-ur-Riqa`. We left Messenger of Allah (ﷺ) to take rest under a shady tree. One of the polytheists came to him. The sword of Messenger of Allah (ﷺ) was hanging on a tree. He drew it and said: "Are you afraid of me?'' Messenger of Allah (ﷺ) said, "No". Then he said: "Who will then protect you from me?'' Messenger of Allah (ﷺ) replied, "Allah".And in a narration of Abu Bakr Al-Isma`ili, the polytheist asked: "Who will protect you from me?'' Messenger of Allah (ﷺ) replied, "Allah.'' As soon as he said this, the sword fell down from his hand and Messenger of Allah (ﷺ) catching the sword, asked him, "Who will protect you from me.'' He said, "Please forgive me.'' Messenger of Allah (ﷺ) said, "On condition you testify that there is none worthy of worship but Allah and that I am His Messenger.'' He said, "No, but I promise you that I shall not fight against you, nor shall I be with those who fight with you". The Prophet (ﷺ) let him go. He then went back to his companions and said: "I have come to you from one of the best of mankind".
Arabic/English book reference: Book 1, Hadith 78