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).
عَنْ عَبْدِ اللَّهِ ؓ فِي هَذِهِ الآيَةِ {الَّذِينَ يَدْعُونَ يَبْتَغُونَ إِلَى رَبِّهِمِ الْوَسِيلَةَ} قَالَ نَاسٌ مِنَ الْجِنِّ {كَانُوا} يُعْبَدُونَ فَأَسْلَمُوا