Social Media and Riya: When Sharing Becomes Showing Off
Exploring the Islamic concept of riya (showing off) in the context of social media — where the line is, how to check your intention, and how to share authentically.
Nafs Team
· 6 min read
A Question Worth Sitting With
You’ve just gotten back from Umrah. Your heart is full, you’re still feeling the closeness to Allah, and you want to share it with your community. You post a photo at the Ka’bah with a heartfelt caption about what the journey meant to you.
Is that riya?
Or: You finish praying tahajjud and post a reflective thread about how night prayer has changed your life, hoping it might inspire others.
Is that riya?
Or: You share a fundraiser for a good cause on your story, publicly pledging your own donation.
Is that riya?
These are real questions that practicing Muslims wrestle with — and the discomfort is a healthy sign that the heart is paying attention. But discomfort alone isn’t enough to answer the question. We need a clearer framework.
What Is Riya?
Riya comes from the Arabic root r-a-y, meaning to see. Riya is performing acts of worship or goodness for the sake of being seen by others — to gain their approval, admiration, or praise. The Prophet Muhammad (peace be upon him) called it “the minor shirk.”
“What I fear most for you is the minor shirk.” He was asked what that was, and he said: “Riya — showing off. Allah will say on the Day of Resurrection when people are being rewarded for their deeds: ‘Go to those for whom you were performing in the world, and see if you find any reward with them.’” (Ahmad)
This is a sobering description. The deed that was performed for an audience — rather than for Allah — is returned to that audience for its reward. And an audience of fellow humans has nothing to give.
Riya in the Classical Understanding
The classical scholars defined riya as performing acts of worship — prayer, fasting, charity, Quran recitation, even dress and manner — with the primary intention of being noticed and praised by people.
Note: primary intention. The scholars were careful here. Almost every act of worship has some mixture of motives. Doing something good and knowing that people will respect you for it is not automatically riya. What matters is what’s driving you.
Imam al-Ghazali identified several degrees of riya in Ihya Ulum al-Din:
- Pure riya: doing the deed solely to be seen, with no intention of pleasing Allah
- Mixed riya: intending both Allah’s pleasure and public recognition, with riya dominant
- Mixed intention: genuinely seeking Allah’s pleasure but also aware of and pleased by human approval
- The hardest case: starting sincerely but being corrupted mid-act by the desire to be seen
The third and fourth cases are where most of us actually live, and the scholars were compassionate about this reality. The antidote is not to stop doing good but to constantly renew and check the intention.
How Social Media Changes the Calculation
Social media is the first environment in human history specifically engineered to make everything public, to attach metrics of approval (likes, views, followers) to every act, and to reward performance over sincerity.
This creates a novel riya problem.
Before social media, if someone prayed in their home, it was private. If they gave charity, it was between them and the recipient. The decision to make an act public or private was a genuine choice with real consequences.
On social media, the default is public. The platform actively encourages sharing every experience, every deed, every sentiment. And it provides real-time feedback on how well you performed for your audience.
The Prophet (peace be upon him) said: “The deeds most beloved to Allah are those done consistently, even if they are small.” He did not say “the deeds most widely shared.” There is a gap — and sometimes a canyon — between what earns Allah’s love and what gets engagement.
The Line Between Sharing and Showing Off
So where is it? Here are several practical tests:
Test 1: Who Are You Thinking About While You Post?
Close your eyes before hitting “share.” Who is in your mind? Are you imagining Allah’s pleasure? Or are you imagining specific people’s reactions — a parent, a community elder, an ex, peers you want to impress?
If the audience in your head is human, that’s a signal worth examining.
Test 2: Would You Do It If No One Could See?
If social media disappeared tomorrow, would you still do this act? Would you still give that charity, still fast, still do Umrah? If the act is contingent on it being sharable, it’s worth examining who it’s really for.
If you would still do it privately, then sharing is an addition to the intention rather than the intention itself.
Test 3: How Do You Feel If No One Responds?
You post about a meaningful Islamic experience and you get no likes, no comments, nobody shares it. How does that feel?
Disappointment is normal. Feeling completely deflated — like the experience itself was wasted — is a sign the approval was central to the act.
Test 4: What Is Your Intention for Others?
This is where clarity can emerge. Sharing something with the genuine hope that it benefits others — that your Umrah post might inspire someone to make the journey, that your tahajjud thread might give someone the push they need, that your charity share might cause others to give — is a legitimate and praiseworthy intention.
Da’wa (calling to good), ilm (sharing knowledge), and encouraging others are all rewarded acts. The scholars consistently affirm that sharing acts of worship publicly, with the intention of inspiring others, is not riya — it’s sunnah.
The Prophet’s Example
The Prophet (peace be upon him) did not hide his worship. He prayed publicly, fasted publicly, gave charity publicly when it served a teaching purpose. Many of his supplications and personal devotions were witnessed and recorded by his companions — which is how we know them today.
But there is a crucial distinction: his public acts served others. They were teaching moments, not performance moments. The intention was transmission of guidance, not personal acclaim.
This is the model. Sharing is not inherently wrong. The question is: are you serving others or performing for them?
Practical Guidance
Pause before posting anything religious. Not as a permanent hesitation, but as a habit of intention-checking. One minute before posting: what is this for?
Don’t attach your emotional state to the response. This takes practice. Post and let go. Whether it gets 300 likes or 3 should not change how you feel about the act itself.
Keep some things private. The scholars and spiritual teachers consistently recommend keeping a portion of your worship private — acts that only Allah sees. This acts as a counterweight against the gravitational pull of public performance. Night prayers that you don’t post about. Charity that has no receipt. Fasts that you don’t announce.
Use social media as a tool, not a mirror. A tool for genuinely helping others is neutral — it’s how you use it. A mirror for constantly checking how you appear is spiritually corrosive.
Apps like Nafs exist precisely for this reason: to help you be more intentional about your digital life, creating space to reflect on whether your online habits are serving your deen or subtly working against it.
Compassion for Yourself
Riya is among the most subtle spiritual diseases because it hides behind goodness. It’s not attached to obvious sins — it attaches to prayer, to generosity, to Islamic practice. That makes it hard to see and easy to dismiss.
But the fact that you’re asking the question means the heart is still working. The concern about riya is itself a sign of sincerity. The person who is purely performing for an audience rarely worries about riya — they’ve already made their peace with it.
Keep asking the question. Keep checking the intention. Keep sharing the good when the intention is good. And let Allah be the final assessor of what was done for Him and what was done for others.
May Allah purify our intentions, protect us from the minor shirk, and accept our deeds — public and private — in His mercy.
Keep Reading
Start with the complete guide: The Complete Guide to Islamic Digital Wellness
- 30-Day Social Media Detox for Muslims: A Complete Plan
- I Quit Social Media for 30 Days as a Muslim: Here’s What Happened
- Digital Fasting: An Islamic Perspective on Unplugging
Ready to trade screen time for ibadah? Download Nafs free — 1 minute of worship = 1 minute of screen time.
Want to replace scrolling with ibadah?
1 minute of worship = 1 minute of screen time. Fair exchange.
Download Nafs