Al-Hajj 22:12
يَدْعُوا۟ مِن دُونِ ٱللَّهِ مَا لَا يَضُرُّهُۥ وَمَا لَا يَنفَعُهُۥ ۚ ذَٰلِكَ هُوَ ٱلضَّلَـٰلُ ٱلْبَعِيدُ
YadAAoo min dooni Allahi ma layadurruhu wama la yanfaAAuhu thalikahuwa addalalu albaAAeed
He invokes instead of Allāh that which neither harms him nor benefits him. That is what is the extreme error.
He prays to someone, instead of Allah, who can neither harm him nor benefit him. That is the error that takes him too far from the right path.