Surah Yunus

10:106

وَلَا تَدْعُ مِن دُونِ ٱللَّهِ مَا لَا يَنفَعُكَ وَلَا يَضُرُّكَ ۖ فَإِن فَعَلْتَ فَإِنَّكَ إِذًۭا مِّنَ ٱلظَّٰلِمِينَ

And do not invoke besides Allah that which neither benefits you nor harms you, for if you did, then indeed you would be of the wrongdoers.'"

Tafsir 10:106

Do not worship, O Messenger, besides Allah, the idols and false gods that have no ability to benefit others, nor can they inflict harm on others. If you worship them, you will then be one of the wrongdoers who breaks Allah’s right and the right of their own souls.