You're not the only one
Almost everyone who prays has had this. You say the takbir, and the next thing you know you're in the final sitting and you've spent the whole prayer thinking about an email.
It's been a struggle since the time of the companions. In Sahih Muslim 2203, 'Uthman bin Abi al-'As came to the Prophet ﷺ and said Shaytan comes between him and his prayer and his recitation and confuses him. The Prophet ﷺ told him that's a devil called Khinzab, and when he feels it, to seek refuge in Allah from him and spit lightly to his left three times. 'Uthman said he did that and Allah took it away from him.
So the first thing to know is that a wandering mind is a known struggle, and there's a known response to it, so there's no reason to give up on your prayer because of it.
Why it matters
Surah al-Mu'minun 23:1 and 2 says the believers have succeeded, those who are humbly focused in their prayer. Focus, khushu, is the first quality listed.
In Sunan Abi Dawud 796, graded hasan, 'Ammar bin Yasir heard the Prophet ﷺ say that a man finishes his prayer and only a tenth of it is recorded for him, or a ninth, or an eighth, down to a half. And in Sahih Muslim 234, the Prophet ﷺ said that whoever makes wudu well and prays two rak'ahs with their heart and face on it, Paradise is guaranteed for them.
So the reward of the prayer is tied to how present you are in it, and I find that motivating, because it means every bit of focus you add is worth something.
Before you start
Most of the work happens before the takbir.
In Sahih Muslim 560, 'Aisha narrates that the Prophet ﷺ said there's no prayer when food is served, or when someone is holding back the call of nature. In other words, deal with what's going to pull at you first. Eat if the food's ready. Use the toilet. Then pray.
The Prophet ﷺ even changed his clothes for it. In Sahih al-Bukhari 373, he prayed in a garment with patterns on it, noticed himself looking at them, and afterwards sent it away and asked for a plain one, saying it had distracted him.
The modern version of that is your phone. Put it in another room, or face down and on silent somewhere you can't see it. A phone buzzing on the floor next to your mat will pull you out every time.
Eat first if food is ready
Use the toilet before wudu
Phone in another room or face down on silent
Pray somewhere plain, away from a TV or a busy window
Make wudu slowly, it's the warm-up
During the prayer
Keep your eyes where your forehead goes in sujud. In Sahih al-Bukhari 751, 'Aisha asked the Prophet ﷺ about looking around during prayer, and he said it's something Shaytan snatches from a person's prayer.
Learn what you're saying. A lot of people have recited al-Fatihah thousands of times without knowing the meaning of each line. Spend a week learning it properly, one ayah a day, and the next time you recite it you'll actually be talking to Allah, which is a completely different feeling. Then do the same for the short surahs you use most, and the words of ruku and sujud.
Slow down. Rushing is the biggest killer of focus. Pause properly in each position. Vary the surahs you recite so you're not on autopilot.
And when your mind does wander, which it will, bring it back without beating yourself up. If it's the persistent whispering 'Uthman described, use the response from Sahih Muslim 2203.
After the prayer
Don't jump straight back to the phone. Sit for a couple of minutes of dhikr. It gives the prayer somewhere to land, and over time you'll find you look forward to those few minutes.
Surah al-'Ankabut 29:45 says prayer restrains from indecency and wrongdoing, and that the remembrance of Allah is greater. The more present you are in the prayer, the more it carries into the rest of the day.
Where Prayd fits
Prayd doesn't interrupt you during the prayer. It works before and after. Before, the apps you picked are shielded once the prayer is due, so you're not trying to finish one more video first. After, you scan your prayer mat to log the prayer, which takes a few seconds and means you've already put the phone down by the time you start. If the camera can't match the mat, the "I prayed without a prayer mat" option appears after 12 seconds.
Questions people ask
Is my prayer valid if my mind wandered?
Sunan Abi Dawud 796 describes people having only part of their prayer recorded for them, depending on their focus. Whether a particular prayer is valid is a question for your imam.
What do I do when Shaytan distracts me in prayer?
In Sahih Muslim 2203 the Prophet ﷺ told 'Uthman bin Abi al-'As to seek refuge in Allah and spit lightly to his left three times.
Where should I look during salah?
Most people keep their eyes on the place of sujud. Sahih al-Bukhari 751 warns against looking around in prayer.
Should I eat before praying?
If the food is served, yes. Sahih Muslim 560 says there's no prayer when food is in front of you or when holding back the call of nature.
How long does it take to improve khushu?
It builds slowly. Learning the meanings of what you recite, one ayah at a time, is the change most people notice first.
Sources
- Quran 23:1-2The successful are humble in their prayerChecked 4 December 2026
- Quran 29:45Prayer restrains from indecency, remembrance is greaterChecked 4 December 2026
- Sahih Muslim 2203Khinzab and the responseChecked 4 December 2026
- Sunan Abi Dawud 796Only part of the prayer recordedChecked 4 December 2026
- Sahih Muslim 234Two rak'ahs with heart and faceChecked 4 December 2026
- Sahih Muslim 560No prayer when food is served or holding back natureChecked 4 December 2026
- Sahih al-Bukhari 373The patterned garment that distracted himChecked 4 December 2026
- Sahih al-Bukhari 751Looking around is snatched by ShaytanChecked 4 December 2026
- Prayd guide: prayer-mat verificationMat scan and 12-second fallbackChecked 4 December 2026