It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him): This verse was revealed concerning a group of Arabs who used to worship a group of the jinn; then those jinn became Muslim while that group of Arabs did not know of it, (in Allah's saying:) "Those whom they call upon themselves seek a means of access to their Lord" [Surah al-Isra: 57].
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9762