Guide
Is my prayer accepted if I was distracted or felt nothing?
No one on earth can tell you whether a prayer was accepted. That knowledge is with Allah. What can be said is that the Prophet, peace be upon him, described distraction in prayer as something that happens to people who pray (Sahih al-Bukhari 1231). Whether your own prayer was valid is a question for a qualified teacher.
You said the salam, and then you noticed. You had been somewhere else for most of it. Or you were there, and felt nothing. People search for this as "praying without khushu" (also spelled khushoo), meaning without presence of heart, in salah or namaz.
This page does not give a ruling. It sets out what the texts say and where the question has to go next.
Three questions that get mixed together
When people ask "was my prayer accepted?", they are usually asking three things at once.
- Was it valid? That is a question of law. It depends on the conditions and pillars of the prayer as your school teaches them. A teacher can answer it.
- Was it accepted? That is with Allah. No teacher, no article and no feeling can report on it.
- Did I feel anything? That is your experience. It is real, but it is not the measure of either of the first two.
What the hadith says about distraction
The Prophet, peace be upon him, said that once the iqamah has been called, Satan comes back to a person and says "remember this, remember that", things that were not on their mind before, until the person no longer knows how much they have prayed (Sahih al-Bukhari 1231).
The report is describing a person who is praying. Distraction is treated as something to expect, and the report goes on to give guidance for the person who has lost count. The details belong with your teacher.
A second report is more general. The Prophet, peace be upon him, said that Allah has overlooked for his community the thoughts that occur to their minds, as long as they are not acted on or spoken (Sahih al-Bukhari 5269). It is not about prayer in particular.
Presence matters, and the texts say so
It would be dishonest to stop there. The Qur'an praises presence: "Successful indeed are the believers, those who are humble in their prayers" (al-Mu'minun 23:1-2).
A report in Sunan Abi Dawud says that a person may leave their prayer with a part of it recorded for them: a half, a third, down to a tenth (Sunan Abi Dawud 796, graded hasan by al-Albani). The wording speaks of what is recorded. Reports like this are why the scholars wrote so much about presence. What it means for a particular prayer of yours is a question for a teacher.
So the texts hold two things together. Attention in prayer is worth working for. And the person whose attention wandered is still described as someone who prayed. If you want to work on attention itself, that is a separate page: How do I focus in salah?
Asking for acceptance is itself taught
The Qur'an records Ibrahim and Isma'il, peace be upon them, raising the foundations of the Ka'bah and saying:
"Our Lord, accept this from us. You are the All-Hearing, the All-Knowing."Qur'an, al-Baqarah 2:127 (meaning in English)

They did not announce that the deed was accepted. They asked.
What the scholars wrote
These are summaries from the book we draw on. We have not checked the original passages ourselves.
Imam al-Ghazali, in the fourth book of the Ihya, makes one of the strongest cases in the tradition for presence of heart in prayer. Our source book reports that in the same work he also records the jurists' view that a prayer performed with a wandering heart still discharges the obligation. We pass this on as a description of a classical discussion. For the ruling in your school, ask a qualified teacher.
Ibn 'Ata'illah, in al-Hikam, observes that one sign of leaning on your own deeds is that your hope drops when you slip. On that reading, a scattered prayer is a reason to ask again. It is not a reason to lose hope.
One thing to try after the salam
This is our own exercise, drawn from those works. It is not a ruling and it adds nothing to the prayer itself.
Ask, then leave without a verdict.
- When you finish, stay seated for a moment. Do not start reviewing the prayer.
- Seek forgiveness as the Prophet, peace be upon him, did when he finished his prayer. He sought forgiveness three times (Sahih Muslim 591). "Astaghfirullah" means "I ask Allah's forgiveness". If you already say it, this time mean it for the prayer you just prayed.
- Ask for acceptance, in the words of the verse or in your own language: "Rabbana taqabbal minna." "Our Lord, accept this from us."
- When the question "did that count?" comes back, answer it once: "I do not know, and I am not the One who knows."
- Stand up and go to the next thing in your day. Do not score the prayer.

We cannot promise this will settle the feeling. It turns a verdict you cannot reach into a request.
Questions people ask next
Is salah valid without khushu?
That is a question for a qualified teacher in your school, and we will not answer it for you. What we can say is that the works we draw on describe presence as something to aim for, and do not tell the distracted person to give up the prayer. For what the word means, see What is khushu?
Will Allah accept my prayers? Does Allah accept all prayers?
Nobody can tell you that, in either direction, and we will not say which prayers Allah accepts. What you have is the instruction to pray, and the example of prophets who asked for acceptance after a good deed.
Should I repeat a prayer because my mind wandered?
Do not decide this on your own, and do not make a habit of repeating prayers because they did not feel right. Ask a teacher what your school says. If you feel driven to repeat prayers again and again, or the doubts take up hours of your day, please also speak to a doctor or a mental health professional. That pattern is treatable. More here: Waswas and unwanted thoughts in salah
Is there any point praying if I feel nothing?
Yes. Nothing in the works we draw on says otherwise. More here: Why do I feel nothing when I pray?
Read next
- Why do I feel nothing when I pray?
- What is khushu?
- How do I focus in salah?
- Waswas and unwanted thoughts in salah: what the scholars say, and when to get help
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 "When Nothing Works" section of 120 Classical Practices, one of the eight books in Feel Your Prayer Again.