The Messenger of Allah ﷺ said, "There is not one of you except that a companion from the jinn has been assigned to him."They asked, "Even you, Messenger of Allah?"He replied, "Even me, except that Allah helped me against him and he submitted, so he commands me only with good."
قال رسول الله ﷺ: ما منكم من أحد إلا قد وكل به قرينه من الجن، قالوا: وإياك يا رسول الله؟ قال: وإياي إلا أن الله أعانني عليه فأسلم، فلا يأمرني إلا بخير.
Muslim narrated it in the chapter on the description of the Day of Resurrection (2814) through several routes from Jareer, from Mansur, from Salim bin Abu Jaad, from his father, from Abdullah bin Masud, who mentioned it. Muslim also narrated it through another route from Sufyan Thawri and Ammar bin Raziq, both from Mansur, with the same chain as Jareer and the same wording, except that in Sufyan's version it says, "He has been assigned a companion from among the jinn and a companion from among the angels."Sufyan Thawri's version was also narrated by Imam Ahmad (3648) from Yahya, from him, "Mansur narrated to me" with his chain, and in it, "And I too, but Allah helped me against him, so he does not command me except with what is right." And his statement "fa-aslama" is from Islam.However, Shubah narrated it from Mansur with his chain, with the wording, "There is none among you but has a devil assigned to him." They said, "Not even you, Messenger of Allah?" He said, "Not even me, but Allah helped me with his islam" or "helped me against him until he became safe (aslama)."Bayhaqi narrated it in Dalail (7/101).His statement "hatta aslama" is from safety, meaning safety from his harm. As for the statement "except that he has a devil," the devil does not become Muslim. Shubah was uncertain in his wording, "helped me with his islam" or "helped me against him until aslama," for the first is explicit about his becoming Muslim, while the second could be read either as "aslama" with a fatha on the meem or "uslima" with a damma on the meem.If we look at the majority of the narrations, the wording is "aslama" with a fatha on the meem, similar to his statement "but Allah helped me with his islam." As for the claim that the devil does not become Muslim, this is not an absolute rule, for he is like a human being, who may become Muslim and may not.