The purpose of life as God states it in the Quran is to worship God Himself. Worshipping God in Islam does not mean spending our life in seclusion and meditation. No. To worship God is to know Him, to love Him, to obey His commandments, to enforce His law in every aspect of life, to serve His cause by doing the right and shunning the evil, to be just to Him, to ourselves and to our fellow human beings
To worship God, in Islam, is to “live” life, not to run away from it. God created the human being to be His vicegerent on earth, man cannot escape this responsibility. God provided him with the required assistance: Intelligence and Power to choose his course of conduct. Man is commended by God to exert his utmost to fully serve the purpose of his existence. Should he fail to do that, or misuse his life or neglect his duties, he shall be responsible to God for his wrong deeds.