Riya: The Hidden Shirk That Corrupts Worship
Updated: July 17, 2026
Table of Contents
The Invisible Idol
There is a form of idolatry that builds no statue. It lights no candle before any image and bows to no visible object. It is performed inside mosques, during prayer, in the giving of charity, in the recitation of the Quran. It wears the garments of piety and speaks the language of devotion. And according to the Prophet Muhammad (peace be upon him), it is more dangerous to the believer than the approach of the Dajjal. He called it al-shirk al-khafi, the hidden shirk, and he named its vehicle with a single Arabic word: riya.
Riya is the performance of religious acts for the sake of human approval rather than the pleasure of God. The word comes from the root r-’-y, to see, to be seen. The person caught in riya is performing for an audience, and that audience is not the One who sees all things without ever being seen. It is other people. Their admiration, their respect, their opinion of one’s piety becomes the real object of worship, the hidden idol receiving the devotion that was supposedly directed toward God.
What makes riya uniquely dangerous among the diseases of the heart is its camouflage. Ordinary shirk is out in the open. A person who bows before an idol has made the error plain for all to see. But the person praying with riya and the person praying with ikhlas, with sincerity, make identical movements. They recite the same words, hold the same postures, stand in the same prayer row. The whole difference lies within: for whose eyes is this performance staged? Because that difference is hidden, riya can persist for years, even decades, corrupting every act of worship while the outward form stays impeccable.
Gilani’s Diagnosis
Few classical teachers dissected riya with the directness of Abd al-Qadir al-Jilani, the great 12th-century master whose discourses in al-Fath al-Rabbani (The Sublime Revelation) return to this theme again and again. Jilani treated riya as no minor flaw to be corrected with a passing reminder. He saw it as a structural failure in the soul, a misdirection of the heart that, left unaddressed, hollows out every act of worship from the inside.
The passages quoted below render Jilani’s teaching in al-Fath al-Rabbani in his own direct preaching register; they distill its substance in his manner rather than reproduce a single verbatim translation.
His voice here is confrontational, cutting through the comfortable stories his listeners told themselves:
“You lengthen your prayer when people are watching and shorten it when you are alone. You give charity where others can see and withhold it in private. You speak of God in gatherings to be thought pious, and forget Him in solitude. Who then is your real god: Allah, or the opinion of people?”
This is Jilani’s whole method. He does not argue theologically about the nature of riya. He lays out the evidence and lets the listener reach the one conclusion the evidence allows. If your worship changes depending on who is watching, then the watcher, and not God, is what truly governs your behavior. And whatever governs your behavior is, in practice, your deity.
The logic is hard to escape because the test is so simple. Compare your worship in public with your worship in private. Compare the prayer you offer when the mosque is full with the prayer you offer at three in the morning, when no one on earth will ever know whether you prayed at all. Whatever discrepancy you find is a precise measurement of how far riya has spread into your practice.
The Taxonomy of Display
Across al-Fath al-Rabbani, Jilani sorts riya into distinct kinds, each more subtle and harder to catch than the last. This map matters, because riya comes as a whole family of related ailments, and each member calls for its own kind of watchfulness.
Riya of the body. This is the most external form. It shows in clothing chosen to signal piety, in a face arranged to suggest spiritual seriousness, in the marks of fasting worn as proof of devotion. The person who dresses in the garments of the ascetic, who lets his appearance broadcast renunciation, who wants his thinness from fasting to be noticed, has turned his own body into an advertisement. The body announces: look at me, see how devout I am. The audience is not God, who sees the heart regardless of clothing. It is other people, who can only ever see the surface.
Riya of worship. Here the performance moves from appearance to action. The prayer runs longer when observed. The Quran is recited more beautifully when listeners are present. Charity grows more generous when there are witnesses. Worship, which should be the most intimate conversation between servant and Lord, becomes a public show. Jilani did not just name this pattern. He climbed inside its logic, tracing the ego’s private reasoning with uncomfortable accuracy:
“When you are alone with God, you rush through your prayer as though it were a burden. But when someone you respect enters the room, suddenly your voice deepens, your concentration sharpens, your humility becomes visible. You have just told God: ‘You alone are not enough audience for me.’”
Riya of knowledge. This one afflicts scholars and students of the sacred sciences. It appears in the strategic display of learning: dropping references to obscure texts, mentioning prestigious teachers, parading familiarity with technical terms. Knowledge meant to illuminate the path to God becomes a currency traded for social standing. Ghazali, who knew this form of riya from the inside before his own spiritual crisis, wrote at length about how the scholar’s ego can devour the very knowledge meant to cure it.
Riya of spirituality. This is the deepest and most treacherous form, and Jilani gives it his most penetrating attention. What is put on display here is not the body, not outward worship, not learning, but the inner life itself: tears during prayer, ecstatic states, dreams, visions, and most insidiously of all, humility. He puts it plainly:
“The worst form of riya is the riya of the spiritual seeker. The worldly person shows off his wealth. The scholar shows off his knowledge. But the seeker shows off his humility, his tears, his renunciation. He makes a display of the very qualities meant to cure display. This is the deepest trap.”
The paradox is excruciating. The seeker who has recognized the danger of displaying outward piety now displays inward piety. Having learned that it is crude to show off one’s prayer, he shows off his sincerity. Having learned that it is shallow to display knowledge, he displays his indifference to worldly things. The medicine has become the disease, the antidote poisoned by the very hand that reached for it.
Why the Ego Cannot Bear Invisibility
To reach the root of riya you have to understand the nafs, the ego-self, and where it always leans. The nafs craves recognition. In its unreformed state it simply cannot bear to perform a beautiful action and have no one notice. An act of worship that goes unwitnessed feels wasted to the nafs, because the nafs never really worshipped God in the first place; it worshipped people.
Here is what riya uncovers: who you actually worship. Not who you say you worship. Not who you believe you worship. Who you worship in practice, as shown by the plain evidence of your own behavior. If an act of worship performed in total solitude feels less meaningful, less satisfying, less worth the effort than the same act performed before an audience, then the audience holds the place of ultimate importance in the heart, and God does not.
Jilani understood this with the clarity of someone who had watched the pattern play out in hundreds of seekers, and perhaps in himself. His words cut to the recoil at the center of the matter:
“The nafs will agree to any spiritual exercise, any act of renunciation, any discipline, as long as someone is watching. It will fast for forty days if people will hear of it. It will pray through the night if the story will be told. But ask it to do one small act of worship in absolute secrecy, with the certainty that no human being will ever know, and it recoils. That recoil tells you everything.”
The stages of the soul described in the Sufi tradition are, seen from one angle, a slow release from this very compulsion. The nafs al-ammara, the commanding soul, is turned entirely toward outside validation. As the soul climbs through its stations, the grip of other people’s opinions loosens, and the worship turns increasingly toward its one legitimate audience, God alone.
Ghazali’s Complementary Analysis
In the Ihya Ulum al-Din, in the section on riya and self-admiration (ujb), Ghazali offers a framework that deepens Jilani’s diagnosis. Where Jilani leans toward direct confrontation, Ghazali surveys the terrain with philosophical patience, sorting out gradations of riya that reveal how quietly it works.
Pure riya is the most straightforward case: worship offered solely for human approval, with no intention toward God at all. In its undiluted form it is relatively rare and relatively easy to spot.
Mixed riya is far more common and far more dangerous. The intention here points partly toward God and partly toward human approval. The person genuinely wants to pray. He also wants to be seen praying. The two motives sit side by side, and the soul cannot cleanly pull them apart. Ghazali presses the question: if you would not have performed the act without the audience, then the audience was the deciding factor, whatever genuine devotion rode alongside it.
Retroactive riya is the subtlest of all. The act of worship was performed with sincere intention. But afterward the ego steps in and claims it. That was a beautiful prayer I performed. That was a generous charity I gave. The sincerity that was real in the moment of action is contaminated after the fact by self-admiration. The ego did not spoil the act at its birth; it waited, then spoiled the memory, turning a genuine moment of devotion into a source of spiritual pride.
This last kind tells us something important about the shape of the struggle. Sincerity is not won once and then held forever. It asks for a continuous vigilance over intention, kept up before, during, and after every act. The station of ihsan, worship as though you see God, is not a plateau you arrive at but a practice you keep alive.
The Cure: Ikhlas as Living Discipline
Where riya is the disease, ikhlas, sincerity, is the cure. Yet ikhlas cannot be settled with a single resolution, a one-time announcement that from now on I will be sincere. The nafs would simply fold that announcement into its next performance. Ikhlas asks instead for a steady, ongoing examination of intention, and in al-Fath al-Rabbani Jilani lays out that discipline with practical detail.
Perform your best worship in private. This is the foundation. Whatever you count as your most serious spiritual effort, do it where no one can see. Pray your longest prayer alone. Give your most generous charity in secret. Let your most beautiful recitation of the Quran happen in a room with no witnesses. This does more than cut down the chances for riya. It retrains the heart. It teaches the nafs that worship has an audience of One, and that this audience is enough.
When you catch yourself wanting to be noticed, do not stop the act; renew the intention. Jilani is emphatic here. The ego has a trick in reserve: when it cannot corrupt an act through riya, it tries to stop the act altogether by frightening the seeker about his own impure intention. Do not pray, the nafs whispers, because your intention is not pure. That, too, is a deception. The right response is to carry on with the act while silently turning the intention back toward God. You do not surrender the field; you fight for it.
His counsel on this runs directly against the whisper:
“If you stopped every act whose intention you doubted, the nafs would have achieved its purpose through another door. It could not corrupt your worship through showing off, so it corrupted it through paralysis. Continue the act. Purify the intention within it. The prayer performed with struggling intention is still better than the prayer abandoned.”
Do not abandon sincerity because perfection is out of reach. Noticing that your intentions are mixed is no cause for despair. It is a sign of a living heart:
“The one who worries about riya has a living heart. The one who never thinks about it is the one most deeply afflicted. The completely sincere person is not the one who has no impure intentions. It is the one who does not give impure intentions the final word.”
This last principle keeps the seeker in the right relationship to the problem. Awareness of riya is meant to purify, not to paralyze. The tradition’s careful cataloguing of the forms of spiritual hypocrisy was never meant to breed guilt or hopelessness. It was meant to breed clarity, and out of clarity, the possibility of real change.
When No One but God Is Watching
Jilani delivered these discourses in 12th-century Baghdad, to living audiences gathered in his madrasa. The temptations he described belong to no single century. The gathering that tempts a man to lengthen his prayer may be a crowded mosque, a circle of respected peers, or a wider public he imagines watching him. Wherever the crowd is, the nafs reaches for its approval, and the same trap opens.
So the vigilance Jilani demanded has to travel into every new setting. Whatever gathers around the worshipper and tempts him to perform, the one question stays the same across the centuries: for whose eyes is this act? The answer decides whether what he does is worship or display. This is the labor of muhasaba, the daily accounting the seeker holds with his own soul, catching the drift toward the crowd before it hardens into habit.
Not Guilt but Purification
None of what is written above is meant to leave the seeker frozen in self-doubt, convinced that every prayer is contaminated, every charity false, every act of devotion merely riya wearing a mask. Its aim is to bring a precise and ongoing self-examination into the life of the seeker, the kind of accounting the tradition treats as essential to spiritual progress.
The practice of dhikr, the remembrance of God, is one of the chief remedies, because it slowly turns the heart’s awareness back from the created toward the Creator. The practice of tawba, the continual return and repentance, meets the unavoidable moments when riya is caught in one’s own behavior. The cultivation of adab, spiritual courtesy, refines the fit between outward behavior and inward state.
Beneath all of these lies the foundation of tawhid, the affirmation of God’s oneness. At its root, riya is a breach of tawhid. It hands to human opinion a status that belongs to God alone. So the cure is finally a theological reorientation and not only an inner discipline: the growing, lived realization that there is no audience but God, no judge but God, no gaze that ultimately matters but His.
Jilani, who founded the Qadiri Order and whose influence on Islamic spirituality spans nearly a millennium, came back to this theme over and over because he knew it is never fully closed. Riya is not cured once and left behind. It is a tendency managed for a lifetime through watchfulness, self-examination, and the constant renewal of intention. The sincere person has not scrubbed every impurity from his heart. The sincere person is the one who keeps on purifying. His closing word holds the whole teaching in a single image:
“Sincerity is not a destination you reach. It is a direction you face. Turn toward God in every act, and when you find you have turned away, turn again. The turning itself is the sincerity.”
Sources
- Abd al-Qadir al-Jilani, al-Fath al-Rabbani (c. 1150)
- Abu Hamid al-Ghazali, Ihya Ulum al-Din (c. 1097)
- Abu al-Qasim al-Qushayri, al-Risala al-Qushayriyya (c. 1046)
- Abu Nasr al-Sarraj, Kitab al-Luma’ (c. 988)
- Muhasibi, al-Ri’aya li-Huquq Allah (c. 850)
Tags
Related Articles
Ikhlas: The Sincerity That Purifies Every Act
Ikhlas, the quality of performing every act purely for God, is the cure for riya. Drawing from Gilani's al-Fath al-Rabba...
Daily WisdomKibr: The Root of All Spiritual Disease
Kibr, pride and arrogance, is the mother of all spiritual illnesses. Drawing from Gilani's al-Fath al-Rabbani and Ghazal...
Daily WisdomTeslim: The Art of Surrender to God's Will
Teslim is the surrender of personal will to divine will, the deepest teaching of Jilani's al-Fath al-Rabbani. Not passiv...
Cite as
Raşit Akgül. “Riya: The Hidden Shirk That Corrupts Worship.” sufiphilosophy.org, April 1, 2026 (July 17, 2026last modified) . https://sufiphilosophy.org/daily-wisdom/riya