Mishkat al-Masabih 67
وَعَنِ ابْنِ مَسْعُودٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَا مِنْكُمْ مِنْ أَحَدٍ إِلَّا وَقَدْ وُكِّلَ بِهِ قَرِينُهُ مِنَ الْجِنِّ وَقَرِينُهُ مِنَ الْمَلَائِكَةِ. قَالُوا: وَإِيَّاكَ يَا رَسُولَ اللَّهِ؟ قَالَ: وَإِيَّايَ وَلَكِنَّ اللَّهَ أَعَانَنِي عَلَيْهِ فَأَسْلَمَ فَلَا يَأْمُرُنِي إِلَّا بِخَيْرٍ . رَوَاهُ مُسلم
From Ibn Masʿud, who said: The Messenger of Allah ﷺ said: "There is none of you except that his companion from the jinn and his companion from the angels has been assigned to him." They said: "And you too, O Messenger of Allah?" He said: "And me too, but Allah has helped me against him, so he submitted, and he commands me only to good." Reported by Muslim.