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)
قَالَ رَسُولُ اللهِ ﷺ مَا مِنْكُمْ مِنْ أَحَدٍ إِلَّا وَقَدْ وُكِّلَ بِهِ قَرِينُهُ مِنَ الْجِنِّ وَقَرِينُهُ مِنَ الْمَلَائِكَةِ قَالُوا وَإِيَّاكَ يَا رَسُولَ اللهِ؟ قَالَ وَإِيَّايَ وَلَكِنَّ اللهَ أَعَانَنِي عَلَيْهِ فَلَا يَأْمُرُنِي إِلَّا بِحَقٍّ