This website uses cookies

Read our Privacy policy and Terms of use for more information.

There is a particular kind of worship that only becomes worship once it is photographed. The dawn prayer in a beautiful mosque, the open Qur’an beside a cup of coffee, the hand placing a folded bill into a donation box. Each act is real, and each act is good. Yet something shifts the moment the camera is raised, because the heart begins to ask a second question underneath the first. Not only “is Allah watching,” but “who else will see.”

This quiet hijacking of sincerity has an ancient name. Riya in Islam describes worship performed to be seen by people, and it is named in the sources not as a small flaw but as a hidden danger. The nafs, the lower self, is rarely cruder than when it abandons obvious sins and instead climbs inside the prayer mat itself. It does not fight our devotion. It co-signs it, then quietly asks for credit.

Pen-and-ink engraving of a prayer rug on a dark stage lit by a single spotlight.

In short: Riya means doing acts of worship to be seen by people rather than for Allah, and the sources call it a hidden form of shirk. Its quieter cousin, ujb, is self-admiration after a good deed. The cure is ikhlas, sincere intention guarded before, during, and after, while keeping part of worship hidden.

Riya in Islam: When the Ego Hides in Worship

Riya in Islam is the act of performing devotion so that other people will notice, admire, or approve. The word itself comes from the Arabic root meaning “to see,” and that root reveals the whole problem. Worship is meant to be witnessed by the One who needs no audience, yet riya smuggles in a human crowd. Classical scholars, including Al-Ghazali in his sustained study of the diseases of the heart, treated this as one of the most dangerous spiritual ailments precisely because it disguises itself as obedience. A person fasting for Allah and a person fasting for reputation look identical from the outside. The difference lives entirely in the unseen, which is why it is so easy to miss in ourselves while remaining quick to suspect it in others.

Riya and Ujb: Two Faces of the Same Ego

Riya and ujb are siblings, and naming them apart helps us catch each one. Riya looks outward, seeking the eyes of people during or before the deed. Ujb looks inward, a swell of self-admiration that arrives after the deed is done, the quiet thought that we have become someone particularly devout. Ujb needs no audience at all. A person can pray alone in a dark room and still walk away faintly impressed with themselves, and that satisfaction is what the scholars warned corrodes the reward. Where riya stains the intention going in, ujb spoils the fruit coming out. Both rest on the same root illusion, that the good in us originates with us, rather than being a gift we were merely permitted to carry. Watching for both is the beginning of an honest spiritual life.

The Hadith That Names the Fear

Mahmud ibn Labid reported that the Prophet, peace be upon him, identified the threat with unusual directness:

“The thing I fear most for you is minor shirk.” They asked, “What is minor shirk?” He said, “Riya. Allah will say on the Day of Resurrection, when people are being rewarded for their deeds: Go to those you showed off to in the world, and see if you find any reward with them.”

This narration is recorded in Musnad Ahmad (23630) and graded Hasan (hadeethenc.com). The framing is sobering. The danger is not theft or slander but a flaw woven into acts of worship that look flawless. The cure is named in the Qur’an, where believers are commanded to worship Allah, “being sincere to Him in religion” (Qur’an 98:5). Sincerity, ikhlas, is the antidote held out in the same breath as the warning.

The Trap of Abandoning Good Deeds

A subtle danger waits for anyone who takes riya seriously, and it is worth naming clearly. Some people, frightened of showing off, begin to abandon good deeds altogether, reasoning that a hidden act cannot be contaminated by an audience. The scholars closed this door firmly. Fudayl ibn Iyad is reported to have said that leaving a deed for the sake of people is itself riya, just as doing a deed for the sake of people is riya, so that the fearful person who stops praying in public has not escaped the disease but merely changed its costume. The instruction is not to abandon the deed but to correct the intention. Keep the prayer, keep the charity, keep the fast, and quietly renew the heart’s aim toward Allah. To stop worshipping out of fear of being seen is to let the nafs win twice.

What the Psychology of Self-Image Suggests

Research on self-perception offers a useful, humble parallel to the warning about ujb, though it confirms rather than competes with the deen. In a set of experiments, Monin and Miller found that once people had established themselves as moral, by first affirming an egalitarian view, they felt licensed to act in a more biased way afterward[1]. The effect is now called moral licensing, the tendency for a good deed to grant the ego permission to slip. The parallel to ujb is striking. A person admires their own piety, banks the credit, and quietly excuses the next failing. This pattern has been linked to self-image dynamics rather than proven as an iron law, and parts of the moral-licensing literature face ongoing replication and publication-bias debate, so it is best read as suggestive support. The Sunnah named the wound first. The lab merely sketched one of its mechanisms.

The Cure: Ikhlas as Ongoing Watchfulness

Ikhlas is not a single decision made once but a watchfulness carried through every act. The classical teachers describe guarding the intention at three moments. Before the deed, we pause to ask for whom we are about to act. During the deed, we resist the small pull to perform when others arrive. After the deed, we refuse to bank the praise as ujb and instead return the credit to its Owner. Alongside this, the scholars recommended a hidden portfolio of worship, deeds no one will ever know about, a secret charity, a night prayer, a private dua, kept deliberately out of sight so the heart relearns that Allah alone is enough of an audience. None of this requires withdrawing from visible worship. It requires building a quiet wing of the soul that answers to no crowd. Sincerity grows there, in the dark, like a lamp that burns brightest where no one looks. The work mirrors the patient correction in how to break a bad habit in Islam, where small, repeated returns reshape the heart.

A Note for American Muslims Online

Muslims building lives online face this test in a sharpened form. Personal-brand culture rewards the visible, the curated, the documented, so the Umrah carousel, the donation screenshot, and the verse posted at the perfect hour all collect a currency that the previous generation never handled, the “like” as a new form of applause. None of these acts is forbidden, and sharing good can genuinely encourage others. The danger is structural, because the platform pays in exactly the coin that riya craves, and “building in public” can quietly become “worshipping in public.” The practice here is not to delete every account but to keep a private layer underneath the visible one, to notice when a deed feels incomplete until it is posted, and to ask the old question in the new setting. The same gratitude that protects the heart, explored in the neuroscience of gratitude and shukr, helps loosen the grip of needing to be seen.

Frequently Asked Questions

What is riya in Islam? Riya is performing an act of worship, such as prayer, charity, or fasting, with the aim of being seen and admired by people rather than doing it sincerely for Allah. The sources describe it as a hidden form of shirk.

Is riya a major or minor sin? The Prophet, peace be upon him, called riya “minor shirk” in the narration of Mahmud ibn Labid. It is treated as serious because it corrupts worship from within, yet it is distinguished from major shirk, which is associating partners with Allah in belief.

What is the difference between riya and ujb? Riya is showing off to others, looking outward for their approval during or before a deed. Ujb is self-admiration, an inward satisfaction with one’s own piety that arrives after the deed. Riya seeks an audience, ujb needs none.

Does riya cancel my good deeds? Scholars distinguish between an act done entirely for show, which carries no reward, and a sincere act later touched by a passing thought of others, which a person should reject without despairing. The encouragement is to renew the intention, not to abandon the deed.

Should I stop doing good deeds in public to avoid riya? No. Leaving a good deed for fear of being seen is itself considered a form of riya. The instruction is to keep the deed and correct the intention, while also keeping some worship deliberately hidden.

How do I cure riya? Cultivate ikhlas, sincerity, by guarding the intention before, during, and after each act, returning the credit to Allah, and maintaining a hidden portfolio of secret worship that no one ever sees.

Is sharing my worship on social media riya? Not automatically. Sharing good can encourage others. The test is the inner aim and whether the deed feels incomplete until it is seen. Keeping private worship alongside public sharing helps protect the heart.

Can I feel happy about a good deed without it being ujb? Yes. Gratitude that a good deed was made possible, directed back to Allah as the Giver, differs from ujb, which is self-congratulation that claims the good as one’s own achievement.

Riya and ujb are not signs that a soul is corrupt, but signs that it is alive and watched over. The very ability to notice the ego climbing into the prayer is itself a mercy and an invitation. We are not asked to achieve a flawless heart in a single morning, only to keep returning to the question of for whom we act, gently and without despair. The lamp that burns where no one looks is the one whose light is truly our own. For readers who want to keep walking this path with the wider community, the membership holds the deeper reflections together. May Allah make our hidden deeds heavier than our seen ones, and accept what we offer with sincerity. Ameen.

References

  1. Monin, B., & Miller, D. T. (2001). Moral credentials and the expression of prejudice. Journal of Personality and Social Psychology, 81(1), 33–43. https://psycnet.apa.org/record/2001-05428-004

  2. Musnad Ahmad 23630, narration of Mahmud ibn Labid, graded Hasan. https://hadeethenc.com/en/browse/hadith/3381

Reply

Avatar

or to participate

Keep Reading