Dalil

Quran Al-Hajj 22:12

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

Translation

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