There is none amongst you with whom is not an attache from amongst the jinn (devil). They (the Companions) said: Messenger of Allah, with you too? Thereupon he said: Yes, but Allah helps me against him and so I am safe from his hand and he does not command me but for good. (Using translation from Muslim 2814a)
قَالَ رَسُولُ اللهِ ﷺ مَا مِنْ أَحَدٍ إِلَّا وَقَدْ وُكِّلَ بِهِ قَرِينُهُ مِنَ الْجِنِّ قَالُوا وَأَنْتَ يَا رَسُولَ اللهِ؟ قَالَ وَأَنَا إِلَّا أَنَّ اللهَ أَعَانَنِي عَلَيْهِ فَأَسْلَمَ فَلَيْسَ يَأْمُرُنِي إِلَّا بِخَيْرٍ