Guide
I pray but I keep sinning. Am I a hypocrite?
We cannot judge your heart, and nothing here is a verdict on your faith. What the sources describe is this: a hadith in Sahih al-Bukhari (7507) and Sahih Muslim (2758) tells of a servant who sinned, asked forgiveness, sinned again, asked again, and was forgiven each time. The Qur'an tells the one who has sinned to keep praying (Hud 11:114).
If you searched for this, you are probably doing both. You pray, and there is something you keep going back to. Each time, the gap between the person on the prayer mat and the person an hour later feels wider. The word that comes to mind is a frightening one.
That is a heavy word to carry alone. Here is what the tradition actually puts in front of you.
A Companion once asked the same question
Hanzala was one of the scribes of the Prophet, peace be upon him. One day he met Abu Bakr and said: "Hanzala has become a hypocrite." His reason was that in the Prophet's company he felt the next life as if he could see it, and at home, among family and work, most of that slipped away.
Abu Bakr said he experienced the same. The two of them took the question to the Prophet, peace be upon him. He did not confirm Hanzala's fear. He said that if they stayed always in that state the angels would shake their hands, "but, Hanzala, there is a time for this and a time for that" (Sahih Muslim 2750).
Hanzala's worry was about his state rising and falling. Yours is about a sin, so the two are not identical. Two things carry over. A person close to the Prophet feared this about himself. And when he feared it, he took the question to someone qualified to answer. He did not settle it alone at night.
The servant who sinned again
The Prophet, peace be upon him, related from his Lord:
A servant sinned and said, "My Lord, forgive me my sin." Allah said: My servant has sinned, and knows that he has a Lord who forgives sins and holds to account. Then the servant sinned again and said, "My Lord, forgive me my sin."Sahih al-Bukhari 7507, Sahih Muslim 2758 (meaning in English, shortened)

The report repeats this a third time, and each time the servant is forgiven.
Read it carefully. It is not permission. The servant in the report does not shrug. Each time, the servant turns back and asks, knowing there is a Lord who both forgives and holds to account. The report describes a person who falls and returns, more than once.
The Qur'an tells the one who sinned to pray
A man once came to the Prophet, peace be upon him, and admitted a sin. This verse was then revealed (Sahih Muslim 2763):
"Establish prayer at the two ends of the day and in the early part of the night. Indeed, good deeds remove bad deeds" (Hud 11:114, meaning in English). He asked whether it was for him alone. The answer was that it is for everyone in the community who acts on it.
So the instruction given to a person who had just sinned was prayer. The thought "I sinned, so my prayer is fake, so I should stop" runs in the opposite direction to that verse.
The Qur'an also describes the people it calls mindful of Allah as "those who, when they commit an immorality or wrong themselves, remember Allah and seek forgiveness for their sins", and who "do not persist in what they have done while they know" (Al 'Imran 3:135). The last line matters too. Coming back is expected. Settling in is what the verse warns against.
You may also have read that "prayer restrains from immorality and wrongdoing" (al-'Ankabut 29:45) and taken it as a charge against you. That verse deserves its own page: How does salah change your life, and why has it not changed mine?
What the scholars said about the same sin returning
Ibn al-Qayyim, in al-Da' wa'l-Dawa' (The Disease and the Cure), gives practical advice for a sin that keeps returning. In summary: cut off what feeds it. Do not try to match strength against it once it has arrived.
The Qur'an shows the same thing in the story of Yusuf, peace be upon him. When the moment came, he did not stand and debate it. He went for the door (Yusuf 12:25).
Most of us do the reverse. We leave everything in place and try to be strong at midnight, which is the hour we are weakest.
One thing to try this week
This is our own exercise, drawn from those works. It is not a ruling and it adds nothing to the prayer itself.
Keep the prayer. Move the fight.
- Pray your next prayer on time, whatever happened today. Do not let the sin take the prayer as well.
- When you fall, turn back within the hour. The steps are here: How do you make tawbah?
- Over the next two weeks, notice what repeats before it: the hour, the place, the mood, the device. Notice only that. Do not write out the sin.
- Change one physical thing about that condition, in daylight, while you are calm. Move the phone's charger out of the bedroom. Take a different route. Go to bed when the house does.
- Tell no one the sin itself. A hadith warns against uncovering what Allah has screened (Sahih al-Bukhari 6069). You can ask a teacher for a ruling without saying it is about you.

We cannot promise this ends the pattern. It gives you one small, fair fight in the evening in place of a hard one at midnight.
If the pattern feels compulsive, if you cannot stop despite real effort, or if the guilt has turned into hopelessness or thoughts of harming yourself, please speak to a doctor or a mental health professional. Getting that help is part of taking the means. It is not a failure of faith.
Questions people ask next
How can Allah love me when I keep sinning?
The Qur'an says: "Indeed, Allah loves those who are constantly repentant" (al-Baqarah 2:222, meaning in English). The word describes people who return again and again, which means they had something to return from. We cannot speak for Allah about you. We can say that the verse was not written about people who never fall.
Why do I feel far from Allah after I sin?
Many people describe this. Shame makes you avoid the prayer, and then the avoidance creates the distance. The hadith above shows the servant turning back straight away. More here: Why do I feel far from Allah?
Does my prayer still count if I keep sinning?
The verse in Hud 11:114 tells the one who sinned to establish the prayer. It does not tell that person to stop. Whether a particular prayer is valid is a ruling, so take that question to a qualified teacher.
What part of me keeps pulling me back?
The Qur'an has a word for it, the nafs, and the scholars wrote a great deal about working with it: What is the nafs, and how do you control it?
Read next
- How do you make tawbah?
- What is the nafs, and how do you control it?
- How does salah change your life, and why has it not changed mine?
- Why do I feel far from Allah?
- I keep going back to the same sin
We are not scholars. We are practising Muslims curating what the scholars of this ummah already wrote, held to the standard of the Qur'an and Sunnah. Verify everything. Ask your local people of knowledge.
This article draws on the "Nafs" section of 120 Classical Practices, one of the eight books in Feel Your Prayer Again.