- Published on
What Is Ikhlas — How to Worship Allah Without Your Ego Getting in the Way
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • Deen Back
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

You prayed. You gave sadaqah. You fasted. You completed the act. But somewhere in the middle of it, a quiet voice asked: what will people think?
That voice is not piety. That voice is the ego. And the moment it gets involved, your good deed starts to fracture.
Ikhlas is the quality that keeps your deeds whole. Understanding it — not just as a concept, but as a daily practice — might be the most important interior work a Muslim can do.
What Ikhlas Actually Means
Ikhlas (إِخْلَاص) means purity, sincerity, exclusivity of devotion. In Islamic theology, it refers specifically to performing acts of worship for Allah alone — without any desire for human praise, recognition, or reward.
Surah Al-Ikhlas — the chapter whose very name is ikhlas — captures the essence in four short verses:
قُلْ هُوَ اللَّهُ أَحَدٌ اللَّهُ الصَّمَدُ لَمْ يَلِدْ وَلَمْ يُولَدْ وَلَمْ يَكُن لَّهُ كُفُوًا أَحَدٌ
"Say: He is Allah, the One. Allah, the Eternal Refuge. He neither begets nor is born, nor is there to Him any equivalent."
— (Surah Al-Ikhlas, 112:1-4, quran.com/112/1)
Allah is singular, unique, without equal or competitor. Ikhlas means your devotion mirrors that singularity — it is directed toward Allah alone, undivided, with no portion given to the opinions of other people.
The hadith on the value of ikhlas are striking. The Prophet ﷺ said that reciting Surah Al-Ikhlas is equivalent to reciting one-third of the Quran. (Sahih Bukhari 5015) This is a dense chapter — four verses, mostly titles of Allah. Its weight comes entirely from what it points toward: the absolute, exclusive oneness of Allah. Ikhlas is the practice of making your heart mirror that oneness.
You can explore more about the benefits of Surah Ikhlas — but the core lesson is the same: a deed done with full ikhlas is worth more than a hundred deeds done with a divided heart.
Why the Nafs Fights Against Ikhlas
The nafs is a social creature. It craves status, approval, and recognition. It has been doing this since you were small — adapting your behavior to receive praise, modifying your presentation to manage impressions. This is not evil; it is how human beings survived in communities. But it becomes a problem when it invades your relationship with Allah.
The nafs does not attack ikhlas dramatically. It does not show up and say "let's perform this good deed so people will admire you." It is much more subtle. It whispers: "Post about this charity. Let people know you prayed Qiyam. Make sure the right person sees your Quran on the desk."
The Prophet ﷺ called this riya — the act of performing worship for an audience — and described it as the thing he feared most for his ummah:
إِنَّ أَخْوَفَ مَا أَخَافُ عَلَيْكُمُ الشِّرْكُ الأَصْغَرُ قَالُوا وَمَا الشِّرْكُ الأَصْغَرُ يَا رَسُولَ اللَّهِ قَالَ الرِّيَاءُ
"The thing I fear most for you is the minor shirk." They asked: "What is the minor shirk, O Messenger of Allah?" He said: "Riya."
— (Musnad Ahmad 23119)
Riya is called minor shirk because it divides devotion — you perform the act for Allah and for the audience simultaneously. Understanding the nafs is essential here: the nafs will use your own piety against you, turning acts of worship into opportunities for ego-satisfaction.
How to Practice Ikhlas in Daily Life
Ikhlas is not a feeling you wait for. It is a muscle you build through deliberate practice:
Do deeds in secret. The most powerful exercise for ikhlas is doing a good deed that no one will ever know about. Give charity anonymously. Pray two extra rak'ahs in the middle of the night. Fast on a random day without announcing it. The nafs has nothing to feed on when there is no audience. And the deed itself becomes pure.
Check your intention before, not after. Before starting an act of worship, pause and ask: why am I doing this? Not as self-interrogation, but as a brief internal honesty check. "For Allah" is the answer you are looking for. If other motivations are present, acknowledge them and recommit to doing it for Allah.
Make the dua for ikhlas — asking Allah directly to purify your intention — before major acts of worship. Ikhlas is ultimately a gift from Allah, not something you manufacture through willpower alone. The dua for sincerity in worship is worth learning and saying regularly.
Notice how you feel when not praised. You help someone, they do not say thank you. You give in a collection, it is not acknowledged. You share something beneficial, it gets no response. How do you feel? Disappointment is information from the nafs. Not a failure — information. Notice it, name it, then recommit to doing the deed for Allah.
Reduce public performance of private deeds. Some good deeds are meant to be public — Friday prayer, group charity, speaking truth. Other deeds gain power precisely from privacy. The nafs blurs this distinction. Practice keeping private deeds private.
Build Sincere Daily Habits
DeenBack helps you build private daily dhikr, dua, and Quran habits — acts of worship between you and Allah, not for an audience.
Free download. Premium features available in-app.
Return to Allah when you notice riya. If you realize mid-deed that the ego has entered, do not abandon the deed. The scholars say you can continue and ask Allah to purify the intention. Stop, say istighfar, recommit your intention to Allah, and continue. The nafs is persistent, but so is tawbah.
Signs That Ikhlas Is Growing
- You feel the same about a good deed whether or not anyone witnesses it
- Praise from others starts to feel irrelevant — pleasant but not necessary
- You feel uncomfortable when people praise you extensively for a deed, rather than pleased
- You find yourself more interested in the quality of your relationship with Allah than the perception others have of your piety
- The dua for sincerity in worship becomes something you mean, not just recite
These signs do not arrive all at once. They accumulate slowly, over years of honest self-examination and deliberate practice.
Common Questions About Ikhlas
Can I make dua for something I want personally — is that selfish? Dua itself is worship. Asking Allah for personal needs — rizq, health, relief — with the understanding that He is the only One who can provide it is a pure act. The issue is not asking for yourself; it is doing good deeds so that people think well of you. Personal dua is not riya.
What if I started doing something for the wrong reason but now want to do it sincerely? Recommit with a renewed intention. The Prophet said deeds are by intentions — if you adjust your intention, the deed follows. It is never too late to redirect a deed toward Allah.
Is it possible to have perfect ikhlas? The scholars say pure ikhlas — completely free of ego — is rare and a mark of the highest spiritual stations. What most of us can achieve is sincere ikhlas: a genuine primary intention toward Allah, with ongoing effort to minimize the ego's interference. That is sufficient, and Allah accepts it.
Closing — The Deed That Reaches Allah
Not every deed makes it to Allah. The Prophet described deeds done with riya being thrown back at the one who performed them. But deeds done with ikhlas — even if small, even if imperfect in form — travel directly to Allah and carry their reward with them.
وَمَا تُنفِقُوا مِن خَيْرٍ فَلِأَنفُسِكُمْ وَمَا تُنفِقُونَ إِلَّا ابْتِغَاءَ وَجْهِ اللَّهِ
"And whatever good you spend is for yourselves, and you do not spend except seeking the face of Allah."
— (Surah Al-Baqarah, 2:272, quran.com/2/272)
The face of Allah. That is the target. Keep it in view.
Worship for Allah — Build the Private Habit
DeenBack helps you track daily dhikr, dua, and Quran — the intimate, private deeds that build ikhlas one day at a time.
Free download. Premium features available in-app.
Frequently Asked Questions
How do I know if my deeds are done with ikhlas?
A useful test: would you do this deed if no one would ever find out about it? If the answer is yes, that is a sign of ikhlas. Another test: how do you feel when someone does not praise you for a good deed? If you feel disappointed, the ego was involved. Ikhlas does not require perfection — it requires honest self-examination and continuous refinement.
Does showing good deeds automatically cancel ikhlas?
Not necessarily. Public worship — like praying in the masjid or giving to charity visibly — is often encouraged in Islam to inspire others. The issue is intention. If your intention is Allah's pleasure first and inspiring others second, the deed can still carry ikhlas. If your intention is praise first and Allah second, the ikhlas is compromised.
What is riya and how does it destroy ikhlas?
Riya means performing acts of worship to be seen and praised by people rather than for Allah. The Prophet called it 'the minor shirk' because it associates the motive of pleasing creation with acts that should be purely for the Creator. It destroys the reward of a deed even when the deed is externally correct.
Can I have ikhlas if I benefit from a good deed?
Yes. If you pray Fajr and feel better afterward, that benefit does not cancel your ikhlas if your reason for praying was Allah. The ancillary benefit is fine. The problem is when the benefit becomes the primary motivation and Allah becomes secondary.
What dua should I make to protect my ikhlas?
The Prophet used to say: Allahumma inni a'udhu bika an ushrika bika wa ana a'lam, wa astaghfiruka lima la a'lam — 'O Allah, I seek refuge in You from knowingly associating anything with You, and I seek Your forgiveness for what I do unknowingly.' This dua directly addresses the risk of hidden riya and is recommended to say daily.
