The Statement of Allah the Exalted: "Those whom they call upon [like 'Isa (Jesus) the son of Maryam (Mary), 'Uzair (Ezra) angels, etc.] desire (for themselves) means of access to their Lord (Allah)..." (V.17:57)
Narrated `Abdullah:Regarding the Verse: 'Those whom they call upon (worship) (like Jesus the Son of Mary or angels etc.) desire (for themselves) means of access, to their Lord....' (17.57) (It was revealed regarding) some Jinns who used to be worshipped (by human beings). They later embraced Islam (while those people kept on worshipping them).
Reference
Sahih al-Bukhari 4715
In-book reference
Book 65, Hadith 237
USC-MSA web (English)
Vol. 6, Book 60, Hadith 239
Translation by Dr. M. Muhsin Khan · Language: EN
Sahih
Arabic Text
حَدَّثَنَا بِشْرُ بْنُ خَالِدٍ، أَخْبَرَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، عَنْ شُعْبَةَ، عَنْ سُلَيْمَانَ، عَنْ إِبْرَاهِيمَ، عَنْ أَبِي مَعْمَرٍ، عَنْ عَبْدِ اللَّهِ ـ رضى الله عنه ـ فِي هَذِهِ الآيَةِ {الَّذِينَ يَدْعُونَ يَبْتَغُونَ إِلَى رَبِّهِمِ الْوَسِيلَةَ} قَالَ نَاسٌ مِنَ الْجِنِّ {كَانُوا} يُعْبَدُونَ فَأَسْلَمُوا.