Riya: The Hidden Shirk
The Prophet ﷺ said the thing he feared most for his ummah was minor shirk. When asked what that was, he said: riya, performing acts of worship to be seen by people. In the age of social media, this ancient disease has found its most efficient host.
Contents
What Riya Is
Riya is performing an act of worship, or any act intended to draw closer to God, with the purpose or partial purpose of being seen and praised by people. The word comes from the root ra'a (to see). The murai is the one who performs for the viewer.
The Prophet ﷺ said: "The thing I fear most for you is minor shirk." The companions asked what minor shirk was. He said: "Riya. God will say on the Day of Resurrection, when people are being recompensed for their deeds: Go to those for whom you used to perform, and see if you find your reward with them." (Ahmad)
This is the gravity of riya: a deed done for people is given to people. It has no value before God because it was not done for God. The prayer that was lengthened when others were watching, the charity announced publicly for recognition, the fast mentioned in conversation, the Islamic post crafted for engagement: if the motivation was human approval, that approval is all it earns.
The Gradations
Riya is not binary. The classical scholars (Ibn al-Qayyim and Ibn Rajab among them) distinguished several levels:
Pure riya: An act performed entirely for human approval with no intention of pleasing God. This nullifies the act entirely.
Mixed intention: An act begun sincerely but into which the desire for recognition enters. Ibn al-Qayyim described this as the most common and most dangerous form because it begins with sincerity and is therefore harder to detect. If the desire for recognition was present from the beginning and becomes dominant, the act is corrupted. If it enters after the act has begun sincerely, the correct response is to resist it and return the heart to God, the scholars said this does not necessarily nullify the act if it is resisted.
The whisper of riya: The awareness that you are being watched, the slight adjustment of your prayer when someone enters the room, the impulse to mention your fast in conversation. This is the most subtle form, but one that the scholars said must be noticed and addressed.
The Social Media Dimension
Social media has created a structure that is almost perfectly designed to cultivate riya.
Every post invites measurement (likes, shares, comments, reach). Every piece of Islamic content is subject to the same engagement metrics as every other content. A post about your prayer, your charity, your Quran reading, your fast, each one generates a number. That number is a form of human approval, delivered instantly, quantifiably, repeatedly.
The person who posts Islamic content is not automatically in riya. There is legitimate Islamic content, like teaching, reminding, sharing knowledge, or giving da'wah. The Prophet ﷺ said: "Convey from me, even if it is one verse." Public Islamic expression has always existed and has always been valuable.
The question is the internal state. Why are you posting this? Would you post it if no one would see it? Would you post it if you knew it would get zero engagement? If the answer to either question is no, then the motive requires examination.
The specific danger of social media riya: it happens in increments. The first Islamic post is sincere. The second is slightly shaped by the memory of the first one's engagement. The third is crafted with the audience in mind. By the tenth, the person is producing content for an audience, and their worship has become a performance without them having made a single conscious decision to make it so.
The Particular Danger for Visible Muslims
A Muslim who is publicly known as religious (who wears the hijab, who has an Islamic account, who is known in their community as pious) faces a specific form of riya: the performance of identity. The Islamic appearance becomes a social role. The role must be maintained. The maintenance requires continuous visible performance. The performance gradually becomes the substance rather than its expression.
This is what the Prophet ﷺ called the hidden shirk, hidden because it looks like worship from the outside, hidden because the person performing it may not consciously recognise it in themselves.
The Supplication Against It
The Prophet ﷺ taught a supplication: "O Allah, I seek refuge in You from associating partners with You knowingly, and I ask Your forgiveness for what I do not know." (Ahmad)
"And I ask Your forgiveness for what I do not know" is the acknowledgement that riya can operate without full conscious awareness. The heart can be seeking approval without the mind having articulated the desire. The supplication covers what you know and what you do not know about your own intentions. It is a recognition that ikhlas (sincerity) is not a destination you arrive at but a condition you maintain, through continuous attention and continuous seeking of God's help.
The Cure: Ikhlas and What Builds It
Ikhlas is sincerity: performing the act for God alone, without any secondary audience. It is the opposite of riya and its cure.
Ikhlas is not produced by willpower. It is produced by the consistent practice of several things:
Deeds done privately: The Prophet ﷺ described the seven categories of people who will be shaded on the Day of Judgement: among them, the person who gives charity so secretly that their left hand does not know what their right hand gave. Private deeds (prayer that no one sees, charity given without announcement, dhikr done alone) build the capacity for sincerity. They train the heart to act for God in the absence of any human witness.
Every private deed is a deposit against riya. The person whose worship is primarily private has a heart less corrupted by the desire for human approval than the person whose worship is primarily public.
Remembering the audience: The Prophet ﷺ defined ihsan as: "That you worship God as if you see Him; for if you do not see Him, He sees you." (Bukhari and Muslim). Riya is, at its root, a failure of this awareness, the momentary forgetting that the most important Watcher is watching, and the substitution of a human audience for the divine One. The regular practice of muraqaba (awareness of being seen by God) is the direct antidote.
Monitoring the internal state without obsession: The scholars warned against excessive preoccupation with riya, the person who becomes so anxious about their intentions that they cannot perform any act of worship without paralyzing self-examination. The correct approach is attention without obsession: notice when the desire for recognition enters, name it, return the heart to God, and continue. The aim is not perfect sincerity achieved in a moment; it is the continuous return.
The supplication: Make the supplication the Prophet ﷺ taught regularly: before worship, before public acts, before posting anything. "O Allah, I seek refuge in You from associating partners with You knowingly, and I ask Your forgiveness for what I do not know." Let it be the frame through which you examine your intentions.
A Clarification: Public Good Is Not Riya
Not all public religious expression is riya. The scholar who teaches publicly, the da'i who gives public lectures, the person who gives charity openly to encourage others to give; these are not automatically in riya. The Prophet ﷺ spoke publicly. His companions taught publicly. Public good is part of Islamic life.
The distinction is the internal state and the primary motivation. Public teaching motivated primarily by the desire to benefit people and please God (with human recognition as an acceptable secondary consequence) is different from public performance motivated primarily by human recognition, with religious benefit as a secondary justification.
Only the person performing the act can know which it is, and even they may not fully know, which is why the supplication matters.
The Return
If you examine your worship and find riya in it: this is not a cause for despair. It is the beginning of ikhlas. The person who does not examine their intentions cannot correct them. The awareness of the disease is the first step toward the cure.
Make the supplication. Increase your private deeds. Return the heart to God every time it turns toward the audience. Trust that God, who knows what is concealed in the chest, also knows the sincere effort to make it sincere.
Scholar References
- Musnad Ahmad: hadith on riya as minor shirk
- Musnad Ahmad: supplication against riya
- Ibn al-Qayyim al-Jawziyya, Madarij al-Salikin: on the stations of ikhlas and riya
- Ibn Ata Allah al-Iskandari, al-Hikam: on muraqaba and God-consciousness
- Al-Ghazali, Ihya Ulum al-Din: extensive treatment of riya and its cure
- Sahih Bukhari: hadith on the seven shaded on the Day of Judgement including the secret giver