The practice
Ikhlas: The Islamic Meaning of Sincerity
Ikhlas is the hardest virtue in Islam — not because it requires the most effort, but because it requires the most honesty about what you are really doing and why.
By Zaman Ishtiyaq · July 2026
Definition
Ikhlas (Arabic: إخلاص) means sincerity — specifically, the sincerity of intention in an act of worship. It comes from the root kh-l-s (خ-ل-ص), meaning to be pure or free of mixture. An act has ikhlas when it is done purely for Allah's sake, with no admixture of desire for praise, status, or reward from people. The scholars describe it as the condition that makes deeds acceptable: "And they were not commanded except to worship Allah, sincere to Him in religion" (Quran 98:5).
The word ikhlas comes from the Arabic root kh-l-s (خ-ل-ص), which means to be pure, to be free of admixture, to be extracted from impurity — the way gold is refined from ore. When the scholars speak of ikhlas, they mean an intention that has been refined until only one thing remains in it: Allah. No desire for praise. No awareness of observers. No hope that this deed will raise your standing in people's eyes. Only Allah.
That definition makes ikhlas sound simple. But the scholars are unanimous that it is the most difficult of the interior virtues to achieve and maintain. Al-Ghazali, in the Ihya Ulum al-Din, devotes an entire chapter to ikhlas and its opposite — riya — and he opens it with a warning: most people's worship contains hidden riya that they cannot see in themselves. The impurity is not gross and obvious; it is subtle, woven into the fabric of the act, invisible to casual self-examination.
This article explains what ikhlas means in the classical tradition, what scholars from Ibn al-Qayyim to Al-Ghazali say about it, how riya destroys it, and how the practice of muhasaba al-nafs — daily self-accounting — is particularly suited to examining and purifying niyyah.
Surah Al-Ikhlas: A Third of the Quran
The 112th surah of the Quran is named Al-Ikhlas — the surah of sincerity. It consists of four verses: "Say: He is Allah, the One. Allah, the Eternal Refuge. He neither begets nor is born, nor is there to Him any equivalent." (112:1–4). The surah is not named Al-Ikhlas because it teaches about ikhlas as a virtue — it is named Al-Ikhlas because it is itself an act of ikhlas: a pure, undiluted declaration of tawhid, stripped of every impurity of association or comparison.
"By Him in Whose Hand my soul is, it is equal to one-third of the Quran."
The Prophet ﷺ said about this surah: "By Him in Whose Hand my soul is, it is equal to one-third of the Quran" (Bukhari 5013). The scholars have explained this in various ways — the Quran's themes being broadly divided into accounts of Allah, accounts of His commands, and accounts of the Day of Judgement, with Al-Ikhlas being pure tawhid — but what is relevant here is the connection the surah embodies: sincerity, in its fullest Islamic meaning, is inseparable from the oneness of Allah. To have ikhlas is to do the act as if only Allah exists to witness it — which is, in a practical sense, tawhid applied to intention.
What the Scholars Say About Ikhlas
The classical scholars gave ikhlas sustained attention because they recognized it as the condition that makes worship real. An act without ikhlas may be valid in the fiqhi sense — the prayer counts — but it is hollow in the deeper sense. Two scholars in particular developed the concept most fully.
Ibn al-Qayyim in Madarij al-Salikin
Ibn al-Qayyim dedicates the station of ikhlas in Madarij al-Salikin to an analysis that is still unsurpassed in its precision. His definition: ikhlas is when the servant's desire for approval from people leaves his heart entirely, so that the deed is done purely for Allah. He identifies this not as the suppression of the desire for human approval — suppression is effort against something that remains — but as its departure. The person with ikhlas does not have to fight the desire for praise while performing a deed; the desire is simply not there. This is the station, not the struggle toward it. Ibn al-Qayyim is clear that for most people, what they are practicing is not ikhlas but the effort to attain ikhlas — which is itself praiseworthy and necessary.
Al-Ghazali in Ihya Ulum al-Din
Al-Ghazali's treatment in the Ihya begins with a disturbing observation: most people's worship is mixed with hidden riya that they cannot see in themselves. Not gross showing-off — the person who prays loudly to be seen — but subtle riya: the slight extension of a prostration when someone enters the room, the extra quietness of recitation when guests are present, the way a person's devotion intensifies when observed and relaxes when alone. Al-Ghazali says this subtle riya is more dangerous than gross riya precisely because it is invisible. The person who prays loudly to be seen knows what they are doing. The person whose khushu' fluctuates with the presence of observers may not notice the pattern at all. This is why, he argues, ikhlas requires not just good intentions at the start of an act, but sustained, honest self-examination throughout the spiritual life.
Riya: The Opposite of Ikhlas
Riya (رياء) is the Arabic term for showing off — performing an act of worship in whole or in part for the approval of people rather than for Allah. The Prophet ﷺ called it "the minor shirk" (Ahmad). The term "minor" here does not mean trivial — it means riya is shirk in the domain of intention rather than the domain of belief. The person who performs riya has not, in their explicit creed, associated partners with Allah. But in the intention behind their deed, they have directed part of what should be purely for Allah toward the gaze of people.
The Prophet ﷺ described the danger of riya with particular seriousness. In one hadith, he said: "The thing I fear most for you is the minor shirk." When the companions asked what it was, he said: "Riya — showing off." He then described the Day of Judgement: Allah will say to those who performed deeds for others to see, "Go to those for whom you showed off in the world and see if you find any reward with them" (Ahmad 23630).
Al-Ghazali identifies a spectrum of riya, from the obvious to the nearly imperceptible:
Gross riya
Performing an act of worship that one would not perform if unobserved. Praying in public that one skips in private. Giving sadaqah visibly that one would withhold in private. This form is most recognizable and easiest to guard against once named.
Mixed riya
Performing the act for Allah, but also because others will see. The deed would have been done privately, but its form is influenced by observation — the prayer is longer, the voice is quieter, the posture is more deliberate. Al-Ghazali says this is the most common form among the outwardly religious.
Hidden riya
The subtlest form: feeling pleased when someone notices your worship. The act was done sincerely — but the pleasure in being noticed reveals that some part of the self was oriented toward that notice. This is the form that Al-Ghazali says most people cannot detect in themselves without sustained, honest muhasaba of intention.
How to Cultivate Ikhlas
Ikhlas is both a gift that Allah gives and a station that the servant works toward. The classical tradition offers several practical means of cultivating it — none of them instant, all of them sustained.
Ask Allah for it
The scholars unanimously regard ikhlas as tawfiq from Allah — you cannot manufacture it alone. The Prophet ﷺ taught a dua specifically for protection from shirk, including its hidden form: "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 associating partners with You while knowing it, and I seek Your forgiveness for what I do not know" (Ahmad 19606). Repeating this dua, especially before worship, is the prophetically taught starting point.
Hide good deeds when possible
The Quran praises those who give sadaqah in secret (2:271), and the Prophet ﷺ described among the seven shaded on the Day of Judgement "a man who gives sadaqah and conceals it so that his left hand does not know what his right hand spent" (Bukhari 660). Habitual concealment of good deeds trains the soul away from dependence on the observer. It also provides a diagnostic: if concealing a good deed feels genuinely neutral, that is a sign of growing ikhlas. If it feels like a loss, that is useful information about where the deed's motivation partly lay.
Do the act and leave the outcome to Allah
Ibn al-Qayyim identifies non-attachment to results as one of the clearest marks of ikhlas. The person with ikhlas does what is asked and releases it — they do not check whether the deed was appreciated, whether it produced the desired change, whether they will be remembered for it. The deed was for Allah; the result is Allah's business. This is not passivity — it is the proper understanding of the servant's role. The servant acts; Allah judges, accepts, and rewards.
Frequent muhasaba of intention
The daily practice of muraqaba — watchfulness over the heart — and muhasaba al-nafs is the primary practical tool for working toward ikhlas. By examining not only what you did but why you did it, you begin to see the patterns that reveal contaminated intention — the deeds that were slightly better when observed, the generosity that required acknowledgment, the worship that intensified when someone admired it. Seeing these patterns honestly is the beginning of ikhlas, not its absence.
Ikhlas and Muhasaba: Examining the Why
The practice of muhasaba al-nafs — the daily self-accounting that the classical scholars described as the foundation of serious spiritual life — is particularly suited to the work of ikhlas. Most evening self-examinations ask "what did I do today?" But the examination of ikhlas asks a harder question: "why did I do it?"
The distinction matters because the same act can be done with ikhlas or without it, and from the outside — and even from most angles of self-examination — the two look identical. A person who gives sadaqah out of pure concern for the recipient and a person who gives sadaqah partly to be seen as generous perform the same external act. Only the intention differs. And the intention is precisely what most self-examinations do not reach.
The muhasaba of intention asks questions that conventional self-accounting does not:
Would I have done this if no one would ever know?
This is the classical test. It does not require that the answer always be yes — that is the goal, not the starting point. But the honest answer reveals the degree of ikhlas present. A "probably not" is useful data about where the intention was partly directed.
Was I pleased when someone noticed?
Al-Ghazali's question. The feeling of pleasure when an act of worship is observed or praised is the sign of hidden riya — even when the original act was done sincerely. Noticing this pleasure, without self-condemnation, is the beginning of working toward ikhlas.
Did I require a result?
The person with ikhlas does not need the deed to have worked — for the recipient to have responded, for the situation to have changed, for the prayer to have been answered in the expected way. Requiring results is a sign that part of the deed was oriented toward the outcome rather than toward Allah.
This is the work of tazkiyah al-nafs — the purification of the soul — applied to intention. It is not done once; it is the sustained daily practice of looking honestly at the why behind the what. The muhasaba app prompts exactly this examination each evening: not only "what did you do today?" but "examine your niyyah — why did you do it, and for whom?" The practice of tawbah then follows naturally: when the muhasaba reveals contaminated intention, you name it to Allah and ask for the ikhlas that you could not produce yourself.
Frequently Asked Questions
Is ikhlas the same as niyyah?
Niyyah is intention — the act of directing your action toward a specific purpose. Ikhlas is the quality of that intention — whether it is pure or mixed. You can have niyyah without ikhlas: a person who intends to pray but wants others to see them praying has niyyah (they are doing the prayer) but lacks ikhlas (the intention is contaminated by desire for human approval). Ikhlas is niyyah refined until only Allah remains in it. Ibn al-Qayyim describes ikhlas as the purification of niyyah from every impurity — the two concepts are related but not identical.
Can you have ikhlas and still want reward from Allah?
Yes. Wanting reward from Allah — jannah, forgiveness, His pleasure — is not a violation of ikhlas. The scholars are unanimous on this. What destroys ikhlas is wanting reward from people: their praise, their admiration, their approval. Hoping for what Allah has promised is itself an act of ibadah. Al-Ghazali writes that the person with ikhlas does the deed for Allah's sake, and if Allah's reward accompanies it, they are grateful — but the deed was not conditioned on the reward. The intention was for Allah, not for the outcome.
What destroys ikhlas?
The primary destroyer of ikhlas is riya — doing an act for the approval of others, or modifying an act because others are watching. The Prophet ﷺ called riya 'the minor shirk' (Ahmad). Other things that corrupt ikhlas include 'ujb (self-admiration — being pleased with your own deed in a way that attributes it to yourself rather than Allah's tawfiq), kibr (arrogance — performing worship as if it reflects well on you), and sum'ah (doing acts to be heard about). The subtlest form is the feeling of pleasure when someone notices your worship.
How do you know if you have ikhlas?
The classical test is: would you perform this act exactly the same way if no one would ever know? If a person's prayer, sadaqah, or fasting would be identical whether performed alone or observed by admired people, that is a sign of ikhlas. Another sign Ibn al-Qayyim gives: the person with ikhlas does not require results. They do the deed and leave the outcome entirely to Allah. Full certainty about one's own ikhlas is difficult — that uncertainty itself drives the sincere person to frequent muhasaba of intention.
Is it possible to have perfect ikhlas?
The scholars generally say that complete, uncontaminated ikhlas in every act is an ideal that only the Prophets achieved consistently. Al-Ghazali writes that most people's worship contains some degree of hidden riya that they cannot see in themselves. The goal is not to wait for perfect ikhlas before acting, but to act while asking Allah for ikhlas, examining one's niyyah through muhasaba, and gradually purifying the heart of the craving for human approval. Ikhlas is both a gift from Allah and a station that is cultivated through sustained effort.
Examine your niyyah tonight
A structured evening practice for examining niyyah, ikhlas, and intention.
The Muhasaba app guides your nightly self-accounting through the classical three-step practice — including a specific prompt to examine your niyyah: not only what you did, but why you did it. Examine your niyyah each evening with the Muhasaba app — free on iOS.
Download on the App StoreNew to muhasaba? Learn what muhasaba al-nafs means →
Learn about niyyah and intention in Islam: What is niyyah? →