Surah Al-A'raf 7:30
فَرِيقًا هَدَىٰ وَفَرِيقًا حَقَّ عَلَيْهِمُ ٱلضَّلَـٰلَةُ ۗ إِنَّهُمُ ٱتَّخَذُوا۟ ٱلشَّيَـٰطِينَ أَوْلِيَآءَ مِن دُونِ ٱللَّهِ وَيَحْسَبُونَ أَنَّهُم مُّهْتَدُونَ
A group [of you] He guided, and a group deserved [to be in] error. Indeed, they [i.e., the latter] had taken the devils as allies instead of Allāh while they thought that they were guided.
Translation: Saheeh International
Tafsir
A party of you He has guided while another party has deserved to go astray — they have taken devils as patrons instead of God that is other than Him and think that they are guided’.
Excerpt from Tafsir al-Jalalayn, commentary on 7:30, via Quran.com. The reader has the full commentary and 9 more tafsirs.