Surah Al-Hajj

22:12

يَدْعُوا۟ مِن دُونِ ٱللَّهِ مَا لَا يَضُرُّهُۥ وَمَا لَا يَنفَعُهُۥ ۚ ذَٰلِكَ هُوَ ٱلضَّلَٰلُ ٱلْبَعِيدُ

He invokes instead of Allah that which neither harms him nor benefits him. That is what is the extreme error.

Tafsir 22:12

He worships besides Allah idols which cannot harm him if he disobeys them, nor can they benefit him if he obeys them. That calling upon idols which can neither harm nor benefit is the misguidance far from the truth.