Mishkat al-Masabih
Mishkat al-Masabih 67
وَعَنِ ابْنِ مَسْعُودٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " مَا مِنْكُمْ مِنْ أَحَدٍ إِلَّا وَقَدْ وُكِّلَ بِهِ قَرِينُهُ مِنَ الْجِنِّ وَقَرِينُهُ مِنَ الْمَلَائِكَةِ. قَالُوا: وَإِيَّاكَ يَا رَسُولَ اللَّهِ؟ قَالَ: وَإِيَّايَ وَلَكِنَّ اللَّهَ أَعَانَنِي عَلَيْهِ فَأَسْلَمَ فَلَا يَأْمُرُنِي إِلَّا بِخَيْرٍ ". رَوَاهُ مُسلم
Ibn Masʿud reported that the Messenger of God said, “Each of you has been assigned a companion from among the jinn and a companion from among the angels.” They asked, “You too, Messenger of God?” He replied, “Me too. But God aided me against him, and he submitted, so he commands me only to do good.” Muslim transmitted it.
Translation notes
The Arabic says فَأَسْلَمَ, literally “he submitted/became Muslim”; the English witness interprets this as the jinn companion accepting Islam.