Surah Al-Ahqaf 46:28
فَلَوْلَا نَصَرَهُمُ ٱلَّذِينَ ٱتَّخَذُوا۟ مِن دُونِ ٱللَّهِ قُرْبَانًا ءَالِهَةًۢ ۖ بَلْ ضَلُّوا۟ عَنْهُمْ ۚ وَذَٰلِكَ إِفْكُهُمْ وَمَا كَانُوا۟ يَفْتَرُونَ
Then why did those they took besides Allāh as deities by which to approach [Him] not aid them? But they had strayed [i.e., departed] from them. And that was their falsehood and what they were inventing.
Translation: Saheeh International
Tafsir
So why did they not help them by averting from them the chastisement those whom they had chosen besides God that is to say other than Him as a means of nearness through whom they may secure nearness to God to be gods? alongside Him and these are the idols the first object of ittakhadhū ‘they had chosen’ is the omitted …
Excerpt from Tafsir al-Jalalayn, commentary on 46:28, via Quran.com. The reader has the full commentary and 9 more tafsirs.