Why would an all powerful creator of Universes need to be worshiped?
He does not need to be worshiped; but their worshiping Him will make them good and well, when they become good men: kind to the poor and needy and orphans ..etc, and so He will guide them and reward them; while their wrong-doing each other will lead that He misguide them. If He had needed their worship, He would have guided them all.
In other words: their becoming God worshippers will lead to the harmony and system, and He will reward them, while their abstention from worshiping Him will lead to dysharmony and He will punish the wrong-doers.
And He deserves to be worshiped, so their abstention from worshiping is arrogance and over-pride over God and they deserve the punishment; while their worshiping Him indicates their recognizing His position and showing much respect to Him, and He will reward them.
(
Quran 39: 7. If you [people] disbelieve
g, then assuredly God does not need you[r belief and worship], and is not pleased with the unbelief [and ingratitude] of His servants
h; but if you show gratitude [to the bounties of God and believe in His messenger], He will be pleased with that
i; [moreover] no soul laden [with sins] may bear the load of [the sin of] another [soul]
j, then [after death] your return will be to your Lord, Who will acquaint [and punish] you according to what you did; for surely He is All-Knowing about [the secrets in] your minds.)
---------------------------------------------------
g In the Quran and in [Mohammed] to whom the Quran has been revealed.
h So he will punish them about it in the Next Life.
i And increase you, out of His surplus.
j i.e. no man may bear the sin of others, so do not listen to the words of your chiefs when they said to you: “Follow our program, and let us bear the guilt of your sins”; for it will only be few days in which you enjoy the life of the World, then …
In addition, it is narrated from our noble Prophet Mohammed that he said: "Moses asked his Lord: "God why did you create the creation?" God - be glorified - said: "I had been a hidden treasure, so I created the creation that they may know Me."