Surah Al-Ankaboot

29:6

وَمَن جَٰهَدَ فَإِنَّمَا يُجَٰهِدُ لِنَفْسِهِۦٓ ۚ إِنَّ ٱللَّهَ لَغَنِىٌّ عَنِ ٱلْعَٰلَمِينَ

And whoever strives only strives for [the benefit of] himself. Indeed, Allah is free from need of the worlds.

Tafsir 29:6

And whoever exerts himself by motivating it to guidance and staying far from disobedience, and whoever strives in the way of Allah, he is only doing so for his own benefit. Allah is Self-Sufficient and in no need of all the creation. Their obedience does not increase Him nor does their disobedience decrease Him.