Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said, regarding the saying of Allah Almighty: "Those whom they call upon themselves seek a means of approach to their Lord" [Surah al-Isra: 57]: "Some people used to worship (jinn); then those whom they worshipped themselves became Muslims, but those who worshipped them did not know of it. So Allah Almighty, on account of that, rebuked them, saying: 'Those whom they call upon themselves seek a means of approach to their Lord' [Surah al-Isra: 57]."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9045