Abdullah bin Masud reported,

Regarding the verse "Those whom they invoke themselves seek the means of access to their Lord" [Isra 17:57], he said, "There were some humans who used to worship a group of jinn. The jinn embraced Islam, but the humans continued in their worship of them, so this verse was revealed: 'Those whom they invoke themselves seek the means of access to their Lord' [Isra 17:57]."

Azami 12659

Sahih

عن عبد الله بن مسعود

{أوليك الذين يدعون يبتغون إلى ربهم الوسيلة} قال: كان نفر من الإنس يعبدون نفرا من الجن، فأسلم النفر من الجن. واستمسك الإنس بعبادتهم، فنزلت: {اولىك الذين يدعون يبتغون الى ربهم الوسيلة}

الأعظمي 12659صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "Say, call upon those whom you have claimed besides Him, for they do not possess the removal of adversity from you or its transfer. Those whom they invoke seek means of access to their Lord, which of them is nearest, and they hope for His mercy and fear His punishment. Indeed the punishment of your Lord is"
Numbering
Jami al-Kamil 12659 (2nd edition)
Azami 12659