Can I pray while music is playing?

Yes. Music playing in the background in a shop, flat or workplace does not make your prayer invalid. Move to a quieter spot or ask for the volume to be lowered if you can. If you can't, focus on your recitation and keep going.
Does background music break the prayer?
No. Prayer is broken by things like losing your wudu, speaking, eating or drinking, or turning away from the qibla. A sound around you is not one of them. Scholars differ on whether music itself is permitted, and many Muslims follow the stricter view. But even those who forbid it generally say that hearing it by chance, without choosing it, is not a sin. See What invalidates prayer in Islam? and Can I still listen to music after becoming Muslim?
Keeping your focus
The real issue is concentration. The Quran describes believers who succeed as those who are humble in their prayer:
A catchy tune can make that harder, so here are some ideas:
- Look at the place of prostration, and do not look around.
- Recite slowly, and think about the meaning of the words.
- If a tune stays in your head, calmly bring your mind back to the verse you are reading.
- If the music has lyrics, concentrate on your own words and don't follow theirs.
Do not be hard on yourself. The Prophet ﷺ said that after the call to prayer, Satan comes back and whispers to a person, making him remember things he had not thought of before the prayer (Sahih al-Bukhari 608). Distraction is common, and it is not a sign that your prayer does not count. See Where should I look during prayer?
Ask politely, or move
You are allowed to ask for a quieter space. Here are some ways to say it:
- Roommate or family: "Could you turn it down for five minutes? I'm going to pray."
- Workplace: use a meeting room, a quiet corner or the stairwell.
- Shop or restaurant: ask the staff if there is a quieter spot.
- Gym or public place: try a different corner, or wait until a quieter moment if there is time.
Earplugs can help if you pray alone. And if the music is your own, pause it before you start.
- Background music does not invalidate your prayer.
- Ask for the volume to be lowered or move to a quiet spot.
- If it continues, focus on your recitation and keep going.
- Distraction is normal and does not mean your prayer is rejected.
People also ask
Can I read the prayer words from a card while praying?
It depends on your school: many scholars allow beginners to read from a card, but Hanafis do not. Practise first and use simple phrases meanwhile.
Read the full answer →Can I pray with dog hair on my clothes?
It depends on your school: Hanafis and Malikis treat dog hair as pure, while Shafi'is and Hanbalis ask you to remove it first. Wudu is not affected.
Read the full answer →Can I pray right after smoking a cigarette?
Yes, smoking doesn't break wudu, so you can pray right after a cigarette. Rinse your mouth and freshen up because of the smell, and work on quitting.
Read the full answer →Can I pray on snow or wet grass?
Yes. Snow, wet grass and mud are fine to pray on if clean; put a mat, coat or waterproof bag under you and avoid visible dirt or ice.
Read the full answer →Can I pray in tight leggings?
Not usually on their own. Leggings show the body's shape and can turn see-through; wear a long top or prayer dress over them to cover properly.
Read the full answer →