What is the purpose of life in Islam?
In short
The Quran says human beings were created to worship God. In Islam, worship (ʿibāda) is not limited to rituals. It covers everything done for God's sake: honest work, raising children, kindness to a neighbour. Life is a short, meaningful test, and everything in it can be turned towards Him.
Worship is wider than you think
One verse captures the whole idea: “My prayer, my devotion, my living and my dying are for God.” Living is listed alongside prayer. Eating to have strength, sleeping to rise refreshed and working to feed a family can all become worship through intention.
Why this frees rather than confines
A heart that lives for people's approval belongs to many masters, all of them changeable. A heart that lives for God has one, and He is constant. This is the freedom that Islamic spirituality, Ibn al-Qayyim's writing in particular, returns to again and again: servanthood to God as liberation from servanthood to everything else.
Sources
وَمَا خَلَقۡتُ ٱلۡجِنَّ وَٱلۡإِنسَ إِلَّا لِيَعۡبُدُونِ ﴿٥٦﴾
I created jinn and humans only so that they would worship Me.
IslamLens paraphrase of the meaning, not a translation
Transliteration
Wama khalaqtu aljinna waalinsa illa liyaʿbudooni
قُلۡ إِنَّ صَلَاتِي وَنُسُكِي وَمَحۡيَايَ وَمَمَاتِي لِلَّهِ رَبِّ ٱلۡعَٰلَمِينَ ﴿١٦٢﴾
Say: “My prayer, my devotion, my living and my dying are all for God, Lord of the worlds.”
IslamLens paraphrase of the meaning, not a translation
Transliteration
Qul inna salatee wanusukee wamahyaya wamamatee lillahi rabbi alʿalameena
ٱلَّذِي خَلَقَ ٱلۡمَوۡتَ وَٱلۡحَيَوٰةَ لِيَبۡلُوَكُمۡ أَيُّكُمۡ أَحۡسَنُ عَمَلٗاۚ وَهُوَ ٱلۡعَزِيزُ ٱلۡغَفُورُ ﴿٢﴾
He created death and life to test which of you is best in deeds. He is the Almighty, the All-Forgiving.
IslamLens paraphrase of the meaning, not a translation
Transliteration
Allathee khalaqa almawta waalhayata liyabluwakum ayyukum ahsanu ʿamalan wahuwa alʿazeezu alghafooru
Deeds are judged by their intentions, and each person receives what they truly intended.
Summary in our words, not a translation.
Open source text ↗Madarij as-Salikin · Ranks of the Seekers
A long commentary on the heart's stations on the way to God: repentance, hope, love, gratitude and patience.