What makes God a god is because He is the Creator and He owns everything He has created. All other attributes of God such as Rahman and Raheem etc become meaningless if He has not created anything and he is all alone as there wont be any objects to apply His attributes. Therefore we can say just like all living things work for their survival, God is also busy creating things all the time for His survival (not as an entity but) as a god.
God has triggered the creation process out of nothing with his words “kun” and assigned roles to all of His creations as co-creators – some as fillers, pushers, reactors, regulators, replicators and makers etc. However, the designers role He kept to Himself until he decided to create human and empowered man with fee will (cognitive ability) and control over earthly resources and send him in a hostile environment where he faces many challenges and in response to those challenges invents solutions and makes contribution to the overall creation process. So that is the purpose of our life and solutions we create are the ‘good deeds’ referred to in sura al-mulk.
The freewill is a dangerous tool and can be misuse. It is equally effective in destruction. That was the concern of angels when God announced his decision to create man with free will. So whether we use it for construction or destruction that is our test on Earth. If we have a God conscious mind (meaning use our free will only to please God) we wont do anything destructive.
Similarly, if we avoid the sins leading to injustice as given in surah Alaraaf we wont destroy the trust of others needed to team up and co-create. Thats because, as an individual, man is good for nothing as he cant even invent a straw.
The the co-creation process requires we share our resources with others if we begin to hoard resources no projects can be delivered and therefore, nothing can be created. Thats why there is so much emphasis on infaq or spending in Quran and hoarding or wasting resources is forbidden.
Prayers and all other rituals help us stay God conscious thru out the day so at no moment specially doing business dealings we don’t forget God and start doing injustice to others leading to breakups and project failures. all the resources God has given us under ahad e amana are supposed to be spent according to the will of god and that is called worship or service of God as workers on Earth. Serving God is the worship God has created jinn and man for.