Surah Saba

34:41

قَالُوا۟ سُبْحَٰنَكَ أَنتَ وَلِيُّنَا مِن دُونِهِم ۖ بَلْ كَانُوا۟ يَعْبُدُونَ ٱلْجِنَّ ۖ أَكْثَرُهُم بِهِم مُّؤْمِنُونَ

They will say, "Exalted are You! You, [O Allah], are our benefactor not them. Rather, they used to worship the jinn; most of them were believers in them."

Tafsir 34:41

The angels will say: “You are pure and exalted. You are our guardian, not them, so there is no friendship between us and them, but rather these idolaters used to worship the satans. They used to appear to them as angels, so they would worship them besides Allah, most of them were believers in them”.