There's a moment some people know well and almost never mention. You're praying in the corner of an office, or at the back of a crowded mosque, or in your in-laws' living room while the TV murmurs. Partway through a rakat you notice you've slowed down. Your posture is a little straighter, and your recitation has become a little more careful. Then a small voice asks the question that ruins everything: Who is this for? From that point the prayer feels contaminated, and plenty of people decide the honest thing is to stop praying where anyone can see.
That decision feels like piety. Very often it's a trap.
This article is about riya', showing off in worship. More precisely, it's about the anxiety of riya': the fear that you're performing, and the way that fear can do more damage to your relationship with prayer than showing off ever could.
What riya' actually is, and what it isn't
In Islamic tradition, riya' means doing an act of worship so that people will see it and think well of you. The Prophet ﷺ warned about it seriously and called it a hidden form of shirk, because it quietly swaps who the act is aimed at. The worry is legitimate, and the scholars wrote about it at length.
Those same scholars also drew a line that anxious people tend to miss. A passing thought is not the same as a motive. Noticing that people can see you isn't riya'. Feeling a flicker of pleasure when someone sees you pray isn't automatically riya' either. The problem is building the act around the audience: starting it for them, stretching it for them, dropping it when they leave.
A saying attributed to the early ascetic Fudayl ibn 'Iyad puts the trap neatly: abandoning a deed because of people is riya', and doing a deed for people is shirk. Sincerity is being freed from both. Look at the first half. The tradition already saw that someone who stops praying in public to avoid showing off is still organizing their worship around other people's eyes. The audience is still deciding things. They've just pushed the act out of sight.
Why being watched changes you, and why that's normal
Psychologists have studied this for over a century. In 1965 the social psychologist Robert Zajonc pulled together decades of findings into what's called social facilitation. The mere presence of other people raises our arousal, which tends to make well-practiced behaviors more pronounced and unfamiliar ones shakier. Later researchers argued that much of this comes from evaluation apprehension, the awareness that we might be judged.
The practical upshot is that feeling different when you're watched is a basic feature of being a social animal. Your body shifts a little whether you want it to or not. If you pray more carefully with people around, that doesn't prove your heart is corrupt. It mostly proves you have a nervous system.
A second finding should lower the stakes even more. In a well-known 2000 study, Thomas Gilovich and colleagues had students walk into a room wearing an embarrassing t-shirt. Afterward the students badly overestimated how many people had noticed it. The researchers called this the spotlight effect. We feel watched far more than we are. The colleague you think is studying your sujood is probably reading an email.
So the audience you're performing for is partly imaginary, and your reaction to it is partly automatic. Neither is the sin.
The white bear problem
This is where the anxiety tightens. Once you start worrying about showing off, you try not to think about it. That makes things worse.
In 1987, Daniel Wegner ran a now-famous experiment in which he asked people not to think about a white bear. They thought about it constantly. His later theory of ironic process explains why. To suppress a thought, the mind sets up a monitor that keeps scanning for that thought, and the scanning keeps bringing it back. The harder you try to push it away, the more often it shows up, especially when you're stressed or distracted.
Apply that to prayer. You stand up already watching your own motives: Am I doing this for them? Is that thought riya'? What about that one? You've made your intentions the object of attention, so you're no longer attending to Allah or to the words you're saying. The prayer turns into a nervous audit of yourself. It feels terrible, and since it feels terrible you take that as proof that something is wrong with your sincerity. The loop feeds itself.
People who struggle with religious scrupulosity, sometimes called waswasa, know this loop very well. The trouble isn't a lack of sincerity. They're spending all their attention checking for it.
Sincerity is a direction, not a purity test
The research on thought suppression and the classical advice point to the same answer. You don't beat an intrusive thought by fighting it. You beat it by turning toward something else.
Wegner's own work showed that a focused replacement works better than plain suppression. Instead of don't think about the bear, you give the mind something specific to hold. Prayer has that built in. Every phrase has a meaning, and every position has a purpose. When the who's watching thought arrives, you don't argue with it or grade yourself. You come back to what you're saying: Al-hamdu lillahi rabbil-'alamin, all praise belongs to the Lord of the worlds. The worlds, which include the people in the room.
This is why many scholars treated ikhlas, sincerity, as something you keep renewing rather than something you lock in once and then guard. You don't reach a pure motive and defend it. You notice you've drifted and turn back, as many times as it takes. Each return counts as sincerity. The drift is the human part, and the return is the worship.
This also explains why the Prophet ﷺ gave a dua for riya' itself, as reported in collections like al-Adab al-Mufrad: 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 anything with You knowingly, and I ask Your forgiveness for what I do unknowingly. Look at how it's built. It assumes some impurity will slip in without your knowing. It doesn't ask you to monitor yourself perfectly. It hands that part over.
The quiet counterweight: hidden deeds
There's one more piece, and behavioral science would recognize it as balancing out the reinforcement. If almost all of your visible worship happens in front of people, the social reward and the spiritual act can start to feel tangled together. A dependable way to untangle them is to keep some worship that nobody ever sees.
The early Muslims were known for this. Some kept night prayers so private their own families didn't know. Some gave charity so quietly that, in the words of a well-known hadith, the left hand didn't know what the right hand gave. These private acts had nothing to do with hiding public worship. They gave the heart a place where the audience was never part of the picture. When you have that, public prayer gets lighter, because your sense of who you are as a believer doesn't depend on being seen.
Your next moves
- Keep praying in public. The next time you're tempted to skip or delay a prayer because you feel watched, pray it anyway, in the same spot and at the same time. Abandoning a deed because of people is the half of the trap you can see coming.
- Set a baseline length and stick to it. Tonight, pray one prayer alone and notice roughly how long you take and which surahs you recite. Use that as your default everywhere, so neither a crowd nor an empty room pushes you longer or shorter.
- Swap the audit for an anchor. Pick one phrase, such as Allahu Akbar or Iyyaka na'budu, as your return point. When the who is this for thought shows up, don't answer it. Go back to the meaning of the next words you're about to say.
- Start one hidden deed this week. Two rakats at night, a small anonymous donation, a dua for someone who will never find out. Tell no one, and keep it that way.
- Memorize the dua against hidden shirk. Write it on a card or in your notes app and say it once after each prayer today. It moves the burden of perfect sincerity off your shoulders.
A place to start that's just yours
A lot of this comes down to having a private relationship with your prayers that doesn't rely on anyone else, whether that's a congregation to keep you on time or a feed showing who else is praying. We built Athan to be quiet in that way: accurate prayer times and the Qibla, with no ads, no social features, and nothing tracking you or turning your worship into something to display. It's simply a reminder between you and the One you're praying to. If that sounds like the kind of support you want, you can find it at athan.lumenlabs.works.