How to purify your intention is the quiet, lifelong work behind every deed — because two identical acts can be worlds apart in the sight of Allah ﷻ, all because of ikhlas.
We have written before about ikhlas — sincerity, the hidden power that decides the true worth of every deed. If you have not read it, start with Ikhlas: The Hidden Power of a Sincere Intention. Here we take up the harder, practical question: how do you actually purify your intention, and protect it from the subtle corruption of riya’ (showing off) that threatens even the most devout? Because ikhlas is not a switch flipped once but a lifelong discipline, and the sincerity of a deed can drain away even as you perform it.
The stakes are as high as they get. Two people give the identical charity — same sum, same recipient, same outward act — and in the sight of Allah ﷻ they are worlds apart, because one gave for Him and the other gave to be seen. The Prophet ﷺ said actions are according to intentions (Bukhari 1), which means the same deed can be worship or an empty shell depending on nothing visible at all. Learning to guard and purify the intention behind your deeds is therefore not a refinement of the religious life; it is close to its whole substance.
Understand What You Are Guarding Against
The primary threat to ikhlas is riya’ — performing an act of worship, in whole or in part, for the eyes of people. The Prophet ﷺ called it “the lesser shirk” and warned of it as the thing he feared most for his community (Ahmad 23630). Its danger is its subtlety. It rarely announces itself; it slips in as the small wish to be noticed, admired, thought well of — the lengthening of the prayer when observed, the mention of the good deed in conversation, the quiet pleasure when the charity is seen. There is also its cousin, sum‘ah: doing good so that others will hear of it. The first step in purifying intention is simply to know these enemies by name, because you cannot guard against a thief you do not recognise.
Practical Ways to Purify the Intention
Hide your good deeds. The single most effective protection for ikhlas is concealment. What no one sees, no one can praise, so the appetite for praise starves. The Prophet ﷺ named among the seven whom Allah ﷻ will shade the one who gives charity so secretly “that his left hand does not know what his right hand has given” (Bukhari 660). Deliberately keeping some of your worship — a night prayer, a charity, a fast — entirely between you and Allah ﷻ trains the heart to act for Him alone.
Ask the honest question. Ibn al-Qayyim ؒ pointed to the clarifying test: would you still do this deed if no one would ever know about it? If the answer wavers, the intention needs attention. Asking this before an act, and honestly after it, exposes the gap between the sincerity you claim and the one you hold.
Renew the intention, again and again. Sufyan al-Thawri ؒ, a great scholar, said he never struggled with anything harder than his intention, “for it keeps turning over on me.” Ikhlas is not achieved once; it drifts even in the middle of a good act. The practice is to keep catching the drift — toward wanting to be seen, toward ego, toward routine — and gently returning the heart to Allah ﷻ. That repeated returning is the work of sincerity.
Do not let riya’ make you abandon the deed. A subtle trap: noticing a flicker of showing-off and therefore giving up the good deed entirely. The scholars warned against this — that too is a trick of Shaytan, robbing you of the deed altogether. The correct response to a flicker of riya’ is not to stop, but to renew the intention and continue. Fight the riya’, not the worship.
The Fear and Hope of the Sincere
The righteous were known to fear riya’ intensely precisely because they took ikhlas so seriously — and yet they never despaired of achieving sincerity, because they knew Allah ﷻ looks at the striving heart. There is a balance to hold here. Excessive anxiety about one’s intention can itself become a paralysing waswas (whispering), and the answer is not endless self-interrogation but honest effort followed by reliance on Allah ﷻ. Do the deed for Him as sincerely as you can manage, guard it where you can, renew the intention when it slips, and then trust that the One who sees the heart rewards its striving. Allah ﷻ says He does not burden a soul beyond its capacity (2:286), and perfect, flawless sincerity in every atom of every deed is not the standard; a genuinely striving heart is. The door is not closed to the imperfect; it is open to the sincere-in-effort.
It also helps to remember that the reward of a sincere intention can exceed the deed itself. The Prophet ﷺ taught that the one who sincerely intends a good deed but is prevented from doing it still receives its reward (Bukhari 2996), and that a person may reach by their intention stations they could never reach by their action. Intention, purified, is that powerful. This is the encouraging flip side of the whole teaching: if a corrupt intention can hollow out a great deed, a sincere one can fill even a small deed — or an unfulfilled one — with immense weight.
Purifying the intention is the quiet, lifelong work behind every deed — and it decides everything, because the same act can be worship or an empty shell in the sight of Allah ﷻ. Hide your good deeds, ask whether you would still do them unseen, renew the intention each time it drifts, and never let a flicker of showing-off make you abandon the good itself. Then trust the One who rewards the striving heart. For the foundation, return to the original article on ikhlas.
Frequently Asked Questions
How do you purify your intention in Islam?
Through specific practices: hide your good deeds so the appetite for praise starves (Bukhari 660); ask honestly whether you would still do the deed if no one would ever know; renew the intention each time it drifts toward wanting to be seen; and never let a flicker of showing-off make you abandon the deed itself. Then trust that Allah ﷻ rewards the striving heart, since perfect sincerity in every atom is not the standard.
What is riya’ and why is it dangerous?
Riya’ is performing worship, in whole or part, for the eyes of people. The Prophet ﷺ called it “the lesser shirk” and the thing he feared most for his community (Ahmad 23630). Its danger is its subtlety — it slips in as the small wish to be noticed or admired, rarely announcing itself. Its cousin sum‘ah is doing good so others will hear of it. Knowing them by name is the first step in guarding against them.
What if I notice showing-off in the middle of a good deed?
Do not abandon the deed — that is itself a trick of Shaytan that robs you of the good entirely. The correct response to a flicker of riya’ is to renew the intention and continue, not to stop. Fight the showing-off, not the worship. The scholars warned specifically against the trap of giving up a good act because a flicker of insincerity appeared in it.
How do I know if my intention is sincere?
Use the test Ibn al-Qayyim ؒ pointed to: would you still do this deed if no one would ever know about it? If the answer wavers, the intention needs attention. But avoid turning this into paralysing waswas — the answer is honest effort, not endless self-interrogation. Do the deed for Allah ﷻ as sincerely as you can, guard it where you can, and trust the One who sees the heart.
Can a sincere intention be rewarded even without the deed?
Yes. The Prophet ﷺ taught that the one who sincerely intends a good deed but is prevented from doing it still receives its reward (Bukhari 2996), and that a person may reach by their intention stations they could never reach by action alone. A purified intention is that powerful — the encouraging flip side of the teaching that a corrupt intention can hollow out even a great deed.