[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".