- Published on
What Is Riya in Islam: Understanding Hidden Shirk
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • DeenUp
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

Why Sincere Intentions Are at the Heart of Islam
Every act of worship begins with niyyah — intention. And few things threaten the sincerity of that intention more quietly than riya (رياء), the spiritual disease of showing off. It does not announce itself. It creeps in when you straighten your posture because someone is watching, or when the quality of your Quran recitation suddenly improves in front of others.
Riya means performing acts of worship not for Allah but to be seen, praised, or admired by people. The Prophet ﷺ named it "the minor shirk" (Musnad Ahmad, 23119), and scholars have long considered it one of the most dangerous hidden diseases of the heart precisely because it corrupts good deeds from the inside without visibly breaking them.
What the Quran and Sunnah Say About Riya
The Quran addresses this directly. Allah says in Surah Al-Ma'un:
فَوَيْلٌ لِّلْمُصَلِّينَ ۞ الَّذِينَ هُمْ عَن صَلَاتِهِمْ سَاهُونَ ۞ الَّذِينَ هُمْ يُرَاءُونَ
"So woe to those who pray — who are heedless of their prayer — those who make a show of their deeds." — (Surah Al-Ma'un, 107:4-6)
This is not a warning about those who deny prayer altogether. It is directed at people who pray correctly outwardly while their inner state is hollow — who pray for the eyes of others.
In Surah Al-Kahf, Allah gives the formula for a deed that is actually accepted:
فَمَن كَانَ يَرْجُو لِقَاءَ رَبِّهِ فَلْيَعْمَلْ عَمَلًا صَالِحًا وَلَا يُشْرِكْ بِعِبَادَةِ رَبِّهِ أَحَدًا
"Whoever hopes for the Meeting with his Lord, let him do righteous work and not associate anyone in the worship of his Lord." — (Surah Al-Kahf, 18:110)
Scholars of tafsir explain "not associate anyone" here as including riya — even the subtle form of doing a deed for Allah but also wanting recognition on the side.
The Prophet ﷺ described the gravity of this directly. When the companions asked "What is the minor shirk, O Messenger of Allah?" he said: "Showing off (riya). Allah will say to those who showed off on the Day of Resurrection: Go to those for whom you were showing off in the world and see if you find your reward with them." (Musnad Ahmad, 23119)
Why Riya Is Called the Minor Shirk
The label "minor shirk" does not mean trivial. It means riya has not risen to the level of associating partners with Allah in creed — but it still diverts the act of worship away from Allah toward creation.
When you pray, fast, or give charity to be praised, the deed is redirected toward people's approval rather than Allah's pleasure. This is why scholars like Ibn Al-Qayyim explained that riya empties acts of worship of their spiritual substance. The form is present; the soul is gone.
Understanding what taqwa means in Islam is essential here. Taqwa — God-consciousness — is the quality that protects the sincerity of every deed. When taqwa is present, you are aware that Allah sees the internal movements of your heart, and no approval from people can substitute for His.
Riya versus Legitimate Excellence
A common question: if someone performs better in worship when others are watching, is that always riya?
Scholars make an important distinction. If the presence of others motivates more care and attentiveness — and you would maintain that standard alone — that is a positive effect, not riya. The problem arises when the motive of being seen is the starting point: when you would not do the deed at all without the audience.
This is why the importance of niyyah in Islam is so foundational. The Prophet ﷺ said: "Actions are by their intentions, and every person will have what they intended." (Sahih Bukhari 1; Sahih Muslim 1907) Where the intention begins determines where the deed is heading.
Deepen your understanding of Quranic values
DeenUp gives you 24/7 answers to Islamic questions — including the inner dimensions of worship — rooted in Quran and authentic hadith from trusted scholars.
Download DeenUp — Free on iOSHow to Protect Yourself from Riya
The cure for riya is threefold: awareness, istighfar, and sincerity training.
Build a Practice of Secret Worship
The most reliable antidote to riya is regular private worship that nobody knows about. Two voluntary rakat alone before Fajr. Charity your family are unaware of. A heartfelt dua in your own language in the darkness before sleep.
These secret deeds train the heart to value Allah's witnessing above all others. They become the bedrock on which public acts of worship can stand securely, because the heart has already learned that Allah's awareness is enough.
Check Your Intention Before Every Act
Before beginning a deed, pause — even briefly — and ask: "Who am I doing this for?" A simple inward acknowledgment — bismillah, and "this is for You, Allah" — re-centers the act before it begins.
Seek Forgiveness and Keep Going
If you notice riya has crept into a deed mid-way, do not abandon it. Seek forgiveness, correct your intention, and continue. The benefits of istighfar extend far beyond removing past sins — regular seeking of forgiveness trains the heart to return constantly to Allah, and that returning is exactly what sincerity requires.
Understand Ikhlas as the Antidote
The opposite of riya is ikhlas (إخلاص) — sincerity, doing everything purely for Allah. This is not a passive state you arrive at once; it is an active orientation cultivated daily. The DeenBack guide to ikhlas in Islam frames this well: ikhlas is not the mere absence of showing off so much as the presence of a heart turned fully toward Allah.
Understanding what ihsan means in Islam connects directly to this: ihsan is worshipping Allah "as though you see Him" — that level of presence makes riya impossible, because you are not performing for people when you are performing for Allah alone.
Signs You May Be Struggling with Riya
These experiences are common and recognizable, and noticing them is the beginning of the cure — not a cause for despair:
- Your prayer posture or recitation quality changes noticeably when others are nearby
- You mention your worship or good deeds more often than necessary
- You feel deflated when a good deed goes unnoticed
- You find public acts of worship easier to maintain than private ones
- You feel relieved when people learn about your fasting or charity
The Demi Manifest piece on tawakkul in daily life offers a related insight: the soul that has learned to rely on Allah alone gradually loses its need for human validation, because it is already receiving what it needs from the only source that matters.
Quranic Answers 24/7
Ask any Islamic question and get answers rooted in Quran and Sunnah from trusted scholars.
Daily Verses & Duas
Start each day with a Quranic verse and curated duas for every moment of your life.
Track Your Deen
Build Islamic habits with daily tracking, streaks, and reflection quizzes.
Common Questions About Riya
Does riya nullify your prayer or good deeds?
Scholars distinguish between riya as the foundation of the deed — performed entirely for people from the start — and riya that enters mid-deed. In the first case, the deed is void. In the second, if you resist it, the deed remains valid. Scholars at institutions like Yaqeen Institute have written extensively on spiritual diseases of the heart, and this distinction appears across classical Islamic scholarship from Ibn Al-Qayyim onward.
Is it riya to feel happy when people praise you for a good deed?
Feeling pleased when goodness is recognized is natural and not sinful on its own. The Prophet ﷺ was asked about a man who does good deeds and people praise him. He said: "That is the good tidings brought forward for the believer." (Sahih Muslim 2642) The issue arises when the desire for praise becomes the motive — when you do good in order to receive it.
What if I am not sure whether my deed was sincere?
Make istighfar, renew your intention going forward, and do not allow self-doubt to become paralysis. Allah is fully aware of your genuine struggle to worship sincerely — and that struggle itself is an act of worship.
Build daily habits rooted in sincerity
Track your Islamic practices with DeenUp and build a consistent daily routine that strengthens your niyyah — one deed at a time.
Download DeenUp — Free on iOSFrequently Asked Questions
What is riya in Islam?
Riya is performing acts of worship or good deeds to be seen or praised by people rather than for Allah alone. The Prophet called it the minor shirk.
Is riya the same as shirk?
Riya is called minor shirk because it redirects the act of worship toward seeking human approval rather than pleasing Allah. It does not constitute major shirk but is still a serious spiritual disease requiring immediate correction.
How do I know if my intentions are sincere?
A practical test is to ask whether you would perform the same deed in private with the same quality and effort. Secret worship that no one knows about is one of the most reliable signs of sincere intention.
What should I do if I notice riya in myself?
Make istighfar, renew your intention, and continue. Scholars teach that riya noticed and resisted is not the same as riya embraced. Do not abandon the deed — correct it from within.
Can riya nullify your prayer?
If the prayer was performed entirely to be seen by others from the beginning, scholars consider it void. If riya entered mid-prayer and you resisted it, the prayer remains valid.