Published on

Showing Off in Worship: Understanding Riya and How to Purify Your Acts

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • Deen Back

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

In the name of God, the Most Gracious, the Most Merciful.

A solitary figure praying in a quiet room illuminated by soft light representing worship done for Allah alone

You prayed longer because someone was watching. You mentioned your fast in a conversation where you didn't need to. You shared your sadaqah on Instagram. You recited more beautifully in the masjid than you do alone at home.

If any of these land with a familiar sting, you have just encountered riya — and the fact that you recognize it is already a good sign. The person who has no riya detection is far more vulnerable than the one who occasionally catches it in themselves.

What Is Riya?

Riya (رياء) comes from the Arabic root ra'a — to see. It is the disease of performing worship in a way that is shaped by who is watching — doing it, or doing it better, for the eyes of people rather than purely for Allah.

The Prophet ﷺ named it directly:

إِنَّ أَخْوَفَ مَا أَخَافُ عَلَيْكُمُ الشِّرْكُ الأَصْغَرُ

Inna akhwafa ma akhafu alaykum al-shirk al-asghar

"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. On the Day of Resurrection, when people are recompensed for their deeds, Allah will say: "Go to those you showed off for in the world and see if you find your reward with them."

— (Musnad Ahmad 23630)

This is sobering. Deeds done for people are redirected to people — and people cannot give you what you were actually seeking.

Why the Prophet ﷺ Feared This for Us

The Prophet ﷺ described riya as the thing he feared most — not murder, not theft, not open sin, but this subtle disease of the worship act. Why?

Because riya corrupts from the inside. A person committing open sin knows they are sinning. A person afflicted with riya may be performing their prayers, their charity, their fasting in complete apparent correctness — and the entire act may be hollow. The outward form is there; the soul of the act is missing because it was given to people rather than to Allah.

Ikhlas — sincerity, purity of intention — is the opposite of riya. Ikhlas is the quality of doing an act solely for Allah, without any admixture of desire for human recognition. Riya is what happens when that quality is absent or compromised.

How Riya Works — Subtly

Riya rarely announces itself. The nafs is too sophisticated for that. Instead it works through gradual contamination:

Gradual contamination of existing acts: You start praying with a pure intention, then someone walks in and you notice yourself adjusting your posture, lengthening your recitation, making it more "performative." The original intention was genuine; the riya crept in mid-act.

Selective doing: You pray at home privately, but rarely miss a prayer in the masjid where others will notice. You give charity when it can be acknowledged, less often when it cannot. These patterns reveal where the nafs is making decisions based on audience.

The internal audience: You do something privately but mentally rehearse how you'll mention it later. "I fasted yesterday, though I didn't tell anyone" — except that you just told someone, and the statement carried an implicit bid for acknowledgment. This is riya operating through anticipated praise.

The Nafs Behind Riya

What is the nafs reveals why riya is so persistent: the nafs craves validation, recognition, and status. These are not evil desires in themselves — but when they infiltrate worship, they corrupt the most sacred dimension of our relationship with Allah.

The nafs ammara wants to harvest approval from people. It knows that worship is a context where people respect and admire the worshipper — so it offers to help you worship better, more impressively, more publicly. The offer seems good. The cost is that the act is no longer fully for Allah.

How to Detect Riya in Yourself

The single most useful diagnostic question: Would I do this, in exactly this way, if I knew with certainty that no human being would ever find out?

  • Would you pray tahajjud if there was no way to mention it to anyone?
  • Would you give that sadaqah if it could never, in any form, be acknowledged?
  • Would you recite Quran the same way if you were completely alone?

The gap between your honest answer to these questions and your actual behavior reveals the footprint of riya in your worship life.

Build a Practice That Is Between You and Allah — Not Instagram

Private dhikr, private Quran, private dua — the acts no one sees are the ones riya cannot touch. DeenBack helps you build daily habits that belong entirely to you and Allah.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Practical Ways to Combat Riya

Increase Private Worship

The most direct remedy is doing more worship privately — worship that structurally cannot be seen. Praying tahajjud while the household sleeps. Giving sadaqah anonymously. Making dua in your car with the windows up. Reading Quran without mentioning it to anyone.

What cannot be seen by people cannot be corrupted by riya in the same way. Private worship also builds the taste for the pure experience of being alone with Allah — a taste that, once developed, makes the approval of people feel increasingly thin.

Make the Specific Dua

The Prophet ﷺ taught a dua specifically for riya:

اللَّهُمَّ إِنِّي أَعُوذُ بِكَ أَنْ أُشْرِكَ بِكَ وَأَنَا أَعْلَمُ وَأَسْتَغْفِرُكَ لِمَا لَا أَعْلَمُ

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 knowingly, and I ask Your forgiveness for what I do not know."

— (Musnad Ahmad 19606)

This dua acknowledges that riya can operate below your level of awareness — and asks Allah's forgiveness for both the conscious and unconscious forms.

Develop Muraqabah

Muraqabah — the awareness that Allah is watching you at all times — is the soil from which ikhlas grows. When your primary audience is Allah, the human audience becomes secondary almost automatically.

What is muraqabah in Islam covers this practice in full. But the starting point is simple: before each act of worship, spend three seconds reminding yourself that Allah sees this, and no one else's opinion of it matters.

Regularly Audit Your Sharing

Social media has made riya structurally easier than it has ever been. Before sharing anything Islamic — a quote, a prayer, a mention of your fasting — ask: who am I sharing this for? If the honest answer has even a trace of "so people will think well of me," pause. Either don't share, or wait until you can share it with a genuinely other-regarding intention (to benefit someone else, not to earn their approval).

Signs Riya Is Decreasing

  • You find yourself doing good deeds and genuinely not wanting to mention them
  • The quality of your private and public worship becomes more consistent
  • You feel relief at not being praised for something, rather than disappointment
  • Renewing your intention becomes a more natural reflex before worship
  • The thought of "who will know about this?" becomes less frequent, then eventually rare

Common Questions

What if I have already done an act with riya — is it rejected?

If riya entered an act after it began with sincerity, scholars say the act may still have some value though diminished. Make astaghfirullah, make the intention fresh, and continue. If the entire act was motivated by riya from the start, repent and repeat it if possible — or at minimum make tawbah and ensure the next similar act is done with greater purity.

Does feeling proud of yourself count as riya?

No — riya is about seeking other people's regard, not about personal satisfaction. Feeling good after a consistent prayer streak or feeling proud of yourself for overcoming a bad habit is not the same as performing the act for external acknowledgment. What is kibr in Islam covers the related issue of spiritual pride, which is a different disease — present, but distinct from riya.

The Worship That Belongs Only to You

There is a quality in worship that is untouchable when no one knows about it — because riya has no foothold in private acts. The prayer prayed in the dark while your family sleeps. The sadaqah given with the left hand that your right hand doesn't know about (as the Prophet ﷺ described in Bukhari 1421). The tears that fall in private when you make dua.

These belong to you and Allah. And according to every description in the tradition, these are among the most beloved acts — not because secret deeds are categorically superior, but because they cannot be corrupted by the nafs's hunger for approval.

The Best Deeds Are the Ones Between You and Allah

Build a consistent private practice — dhikr, Quran, dua — that belongs only to you and Allah. DeenBack tracks your habits without sharing them with anyone else.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

Is riya a major or minor sin?

The Prophet ﷺ explicitly called riya 'the minor shirk' — not the major shirk that removes one from Islam, but a serious form of associating others with what belongs only to Allah. Scholars treat it as one of the most dangerous spiritual diseases precisely because it can contaminate acts of worship that appear outwardly perfect. An act of worship corrupted by riya loses its reward and may even incur blame rather than benefit.

What is the difference between riya and sum'ah?

Riya is showing off through visible acts — doing good deeds so that others can SEE. Sum'ah is showing off through what is heard — doing or saying things so that others can HEAR about them. Both fall under the broader category of seeking human approval rather than Allah's pleasure. The scholars often discuss them together since they share the same root disease: caring more about the audience than the intended recipient of the act.

What if I feel happy when others praise my worship?

The scholars distinguish between riya (doing the act FOR praise) and feeling pleased when praised after the fact. If you prayed sincerely for Allah and someone later praises your consistency, feeling good about that is not riya — the Prophet ﷺ described this as 'a good tiding given to the believer in this world.' Riya is when the desire for that praise influences the doing of the act itself. The test is: would you do this act the same way if absolutely nobody would ever know?

Can riya affect acts done in private?

Yes — this is one of the subtler and more frightening forms of riya. Internal riya is imagining a future audience ('when I tell people about this later...') or feeling the act differently because of how it will sound. A person may give sadaqah privately while mentally rehearsing how to mention it. The scholars warn that this internal audience is still a form of riya, because the act is still being performed partly for people, even if invisibly.

How do I overcome riya?

The main tools the scholars recommend: (1) Do good deeds in private as much as possible — what no one knows about is hard to contaminate. (2) Make the dua against riya regularly. (3) Develop muraqabah — the consciousness that Allah sees you even when no one else does. (4) Remind yourself that human approval is both fleeting and powerless — only Allah's approval changes anything. Over time, the habit of checking 'Am I doing this for Allah or for people?' interrupts riya before it takes hold.