Puropse of Life
One of the greatest attributes of God is wisdom, He creates things for great and wise reasons, and for sublime purposes.
God Almighty said in Quran :
“Did you think that We had created you in play (without any purpose), and that you would not be brought back to Us?”
And said
“We created not the heavens and the earth and all that is between them for a (mere) play”
God has not created man to eat, drink and multiply, in which case he would be like the animals.
God has honoured man and favoured him far above many of those whom He has created, but many people insist on disbelief, so they are ignorant of or deny the true wisdom behind their creation, and all they care about is enjoying the pleasures of this world. The life of such people is like that of animals, and indeed they are even more astray.
Allah, may He be exalted, created mankind to worship Him and to know Him by His names and attributes, and to enjoin that upon them. Whoever submits to Him and does what is enjoined upon him will be one of those who are successful, but whoever turns away from that, they are the losers.
Allah has stated this reason for the creation of mankind, as He says (interpretation of the meaning):
“And I (Allaah) created not the jinn and mankind except that they should worship Me (Alone)”