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 Description of the Day of Judgment (2814) through several routes from Jareer, from Mansur, from Salim bin Abu Jaad, from his father, from Abdullah bin Masud, who said, and he mentioned it.