وَمَا خَلَقْتُ ٱلْجِنَّ وَٱلْإِنسَ إِلَّا لِيَعْبُدُونِ ﴿٥٦﴾
I created the jinn and humankind only that they might worship Me.
Islam teaches that Allah created people to know and worship Him and to do good on earth. Life is a test, and what a person does in it decides their happiness in the afterlife.
Worship in Islam is wider than ritual. Honest work, caring for family, helping a neighbour, being kind to animals and even a smile are counted as worship when done for Allah's sake. Nothing is wasted: every good deed is written, and every difficulty, borne with patience, brings reward.
Muslims believe this life is short and the next is permanent. They are told to enjoy the good things Allah made lawful, to work, to marry and to take part in the world, while keeping in mind that they will return to Allah and answer for how they lived.
وَمَا خَلَقْتُ ٱلْجِنَّ وَٱلْإِنسَ إِلَّا لِيَعْبُدُونِ ﴿٥٦﴾
I created the jinn and humankind only that they might worship Me.
ٱلَّذِى خَلَقَ ٱلْمَوْتَ وَٱلْحَيَوٰةَ لِيَبْلُوَكُمْ أَيُّكُمْ أَحْسَنُ عَمَلًۭا ۚ وَهُوَ ٱلْعَزِيزُ ٱلْغَفُورُ ﴿٢﴾
Who hath created life and death that He may try you which of you is best in conduct; and He is the Mighty, the Forgiving,
وَإِذْ قَالَ رَبُّكَ لِلْمَلَٰٓئِكَةِ إِنِّى جَاعِلٌۭ فِى ٱلْأَرْضِ خَلِيفَةًۭ ۖ قَالُوٓا۟ أَتَجْعَلُ فِيهَا مَن يُفْسِدُ فِيهَا وَيَسْفِكُ ٱلدِّمَآءَ وَنَحْنُ نُسَبِّحُ بِحَمْدِكَ وَنُقَدِّسُ لَكَ ۖ قَالَ إِنِّىٓ أَعْلَمُ مَا لَا تَعْلَمُونَ ﴿٣٠﴾
And when thy Lord said unto the angels: Lo! I am about to place a viceroy in the earth, they said: Wilt thou place therein one who will do harm therein and will shed blood, while we, we hymn Thy praise and sanctify Thee? He said: Surely I know that which ye know not.