Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.

قَوْلُهُ تَعَالَى: {قُلِ ادْعُوا الَّذِينَ زَعَمْتُمْ مِنْ دُونِهِ، فَلَا يَمْلِكُونَ كَشْفَ الضُّرِّ عَنْكُمْ وَلَا تَحْوِيلًا} [الإسراء: 56]

nasai-kubra:11223Muḥammad b. Manṣūr > Sufyān > Sulaymān > Ibrāhīm > Abū Maʿmar > ʿAbdullāh

[Machine] There were some people who used to worship the jinn, then the jinn accepted Islam and the humans remained steadfast in their worship. Then Allah revealed, "Those whom they invoke seek means of access to their Lord" [al-Isra' 17:57].  

الكبرى للنسائي:١١٢٢٣أَخْبَرَنَا مُحَمَّدُ بْنُ مَنْصُورٍ حَدَّثَنَا سُفْيَانُ حَدَّثَنَا سُلَيْمَانُ عَنْ إِبْرَاهِيمَ عَنْ أَبِي مَعْمَرٍ عَنْ عَبْدِ اللهِ قَالَ

كَانَ نَفَرٌ مِنَ الْإِنْسِ يَعْبُدُونَ الْجِنِّ فَأَسْلَمَ الْجِنُّ وَثَبَتَ الْإِنْسُ عَلَى عِبَادَتِهِمْ فَأَنْزَلَ اللهُ ﷻ {أُولَئِكَ الَّذِينَ يَدْعُونَ يَبْتَغُونَ إِلَى رَبِّهِمُ الْوَسِيلَةَ} [الإسراء 57]  


See similar narrations below:

Collected by Muslim
muslim:3030aAbū Bakr b. Abū Shaybah > ʿAbdullāh b. Idrīs > al-Aʿmash > Ibrāhīm > Abū Maʿmar

" Those to whom they call upon, themselves seek the means or access to their Lord as to whoever of them becomes nearest" (xvii. 57) that it related to a party of Jinn who were being worshipped and they embraced Islam but those who worshipped them kept on worshipping them (though the Jinn whom the misguided people worshipped had become Muslims). It was then that this verse was revealed.  

مسلم:٣٠٣٠aحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ إِدْرِيسَ عَنِ الأَعْمَشِ عَنْ إِبْرَاهِيمَ عَنْ أَبِي مَعْمَرٍ

عَنْ عَبْدِ اللَّهِ فِي قَوْلِهِ ﷻ { أُولَئِكَ الَّذِينَ يَدْعُونَ يَبْتَغُونَ إِلَى رَبِّهِمُ الْوَسِيلَةَ أَيُّهُمْ أَقْرَبُ} قَالَ كَانَ نَفَرٌ مِنَ الْجِنِّ أَسْلَمُوا وَكَانُوا يُعْبَدُونَ فَبَقِيَ الَّذِينَ كَانُوا يَعْبُدُونَ عَلَى عِبَادَتِهِمْ وَقَدْ أَسْلَمَ النَّفَرُ مِنَ الْجِنِّ