Dhikr Publishing

Have You Ever Prayed? How Salah Restrains from Shameful Deeds

by Dhikr 8 min read

We keep our bad habits in one room and our prayer in another. The Qur'an puts them in the same room: prayer restrains from shameful deeds. So why does ours so often fail to? A look at what true prayer asks of us, and why a slip is a reason to return, never to stop.

A woven prayer mat on a raised stone floor, lit by a small clay lamp, with brown smoke filling the ground below

When we set out to break a bad habit, we reach for the usual tools. Apps that lock the phone. Plans for the diet. Promises to hold the tongue next time. Prayer rarely makes the list.

Most of us keep the two in separate rooms. Over here is my problem. Over there is my prayer.

The Qurʾān puts them in the same room.

إِنَّ الصَّلَاةَ تَنْهَىٰ عَنِ الْفَحْشَاءِ وَالْمُنْكَرِۗ وَلَذِكْرُ اللَّهِ أَكْبَرُ

”…Indeed, ˹genuine˺ prayer should deter ˹one˺ from indecency [faḥshāʾ] and wickedness [munkar]. The remembrance of Allah is ˹an˺ even greater ˹deterrent˺.”

— al-ʿAnkabūt 29:45

Notice the verb: prayer deters. And notice from what. Faḥshāʾ, al-Rāghib al-Iṣfahānī explains in his dictionary of the Qurʾān, is any deed or word of great ugliness. The look, the word, the thing done when no one is watching. Prayer is meant to stand between us and these, long after we leave the prayer mat.

A school that never closes

How does it do that?

Five times a day we are pulled away from our work, our sleep, our food and our entertainment. We have written before on how this makes ṣalāh a free school for sabr, with lessons five times a day. The same school teaches restraint.

Every time we put the phone down because the prayer has come in, the nafs, our lower or animal self, has wanted one thing and we have done another. Faḥshāʾ often begins when the nafs is given what it wants. Five times a day, prayer teaches it to hear no.

But prayer is more than a drill for the will. We are also standing before Someone. In every rakʿah we tell Him, “You ˹alone˺ we worship” (al-Fātiḥah 1:5). To say that, and then walk out into a shameful deed, is uncomfortable.

That discomfort is part of the restraint.

Help that is not from us

So far, this is our side of it: our effort, our conscience. But the greater help does not come from us at all. It comes from Allah.

Look again at the verse. It does not say that the one who prays deters himself. It says that the prayer deters him. This suggests a help beyond his own effort. And the very same verse of al-Fātiḥah goes on to ask for it: “and You ˹alone˺ we ask for help.” We are not only training. We are asking.

Faḥshāʾ and munkar come as a pair in the Qurʾān, and three verses answer one another:

  • Shayṭān commands them. He “bids ˹all to˺ immorality and wickedness” (al-Nūr 24:21).
  • Allah forbids them. “He forbids indecency, wickedness, and aggression” (al-Naḥl 16:90).
  • Prayer deters from them (al-ʿAnkabūt 29:45).

And the verse in al-Nūr does not leave us to win alone:

“Had it not been for Allah’s grace and mercy upon you, none of you would have ever been purified.”

— al-Nūr 24:21

So we bring our effort, but the restraint itself is His gift. When the prayer is present and sincere, we hope that Allah will turn faḥshāʾ away from us in ways our own effort never could.

How prayer shuts the door

The early generations spoke of this plainly. Ibn ʿAbbās (may Allah be pleased with him) said that in prayer there is a restraint and a deterrent from disobeying Allah. Abū al-ʿĀliyah explained how. Prayer holds three things, he said, and a prayer with none of them is not prayer:

  • Ikhlāṣ (sincerity), which commands you to good.
  • Khashyah (reverent fear of Allah), which restrains you from wrong.
  • Dhikr, the remembrance of the Qurʾān you recite, which both commands and restrains.

Turn that around, and see what happens when prayer goes:

“But they were succeeded by generations who neglected prayer and followed their lusts…”

— Maryam 19:59

Prayer is mentioned first, then the lusts. It suggests that when the wall comes down, faḥshāʾ walks in.

And yet a wall can stand and still let things through. When Ibn Masʿūd (may Allah be pleased with him) was told of a man who prayed a great deal, he said that prayer benefits only the one who obeys it.

“Have you ever prayed?”

This is where it becomes uncomfortable. Many of us do pray, and faḥshāʾ is still at the door.

Ibn ʿAṭāʾ Allāh al-Iskandarī alludes to exactly this. He writes that a prayer which does not afterwards restrain its performer from indecency “is not called a prayer”, and cites this same verse. Then he relates a story of Shaykh Abū al-Ḥasan al-Shādhilī:

Shaykh Abū al-Ḥasan al-Shādhilī relates that the Islamic jurists of Alexandria and its judge would come to him. One day, they came to test the Shaykh, and he sensed that in them. Thereupon he said, ‘O jurists! O jurists! Have you ever prayed?’

They replied, ‘O Shaykh, does any one of us miss prayer?’

He replied to them, ‘Allah said, “Indeed, humankind was created impatient, distressed when touched with evil, and withholding when touched with good, except those who pray” [70:19–22]. When anything harmful afflicts you, do you not panic? If some good comes your way, do you not withhold it?’

They were speechless. The Shaykh then said to them, ‘Have you never performed this type of prayer?’

— Ibn ʿAṭāʾ Allāh, The Refinement of Souls (Tāj al-ʿarūs), translated by Shaykh Amjad Mahmood

These were scholars of the law. They knew every condition of a valid prayer, and they never missed one. So what was the Shaykh getting at?

Think first. The jurists never missed a prayer. What might the Shaykh be alluding to? The Shaykh does not seem to doubt that the jurists’ prayers were valid. His question suggests that a prayer can be valid and still leave the heart as it was: panicking at harm, withholding good. The prayer that attains the rank in the verse is a prayer with khushūʿ (humble presence) and love of Allah.
From the Muslim self-discipline app. “Think first” puts a question to you before the lesson answers it. Here it asks what the Shaykh meant, with the answer shown.

What true prayer asks of us

A valid prayer needs its conditions and its movements. True prayer, the prayer that restrains from faḥshāʾ, asks two things more, and both are in the heart:

  • Khushūʿ (humble presence). The body is still, and the heart knows before Whom it stands. Allah ties success to it: “Successful indeed are the believers: those who humble themselves in prayer” (al-Muʾminūn 23:1–2).
  • Love of Allah. The heart comes because it longs for Allah, not only because prayer is a duty. The ˹true˺ believers “love Allah even more” than others love what they worship besides Him (al-Baqarah 2:165), and the Prophet ﷺ said that the coolness of his eye was placed in prayer (Sunan al-Nasāʾī 3940).

Faḥshāʾ is strong because the nafs loves it. Through khushūʿ the heart is present with Allah. Through love, the heart finds something dearer than faḥshāʾ.

So should I stop until I’m better?

Few of us pray like that yet, and the nafs loves to remind us. Why bother?

A man once told the Prophet ﷺ about someone who prayed at night and stole in the morning. The Prophet ﷺ did not call that prayer worthless. He said:

“What he says [in prayer] will restrain him.”

— Musnad Aḥmad 9778

“Restrain” there is the same Arabic verb that al-ʿAnkabūt 29:45 uses for prayer, translated there as “deter”. It suggests the thief’s prayer was already at work on him.

So when we slip, the next prayer is the place we go to be washed. The Prophet ﷺ compared the five prayers to a river at your door in which you bathe five times a day: no dirt would be left on you (Ṣaḥīḥ al-Bukhārī 528). Nobody refuses the river because he is muddy.

How to begin

Bring one thing into your next prayer: your need of Allah.

  1. See your weakness. “Humankind was created weak” (al-Nisāʾ 4:28). We cannot overcome our bad habits unless Allah supports us.
  2. See the danger. Left to the nafs and Shayṭān, we are on the road to Jahannam (Hell). The guilty there will be asked, “What has landed you in Hell?” They will reply, “We were not of those who prayed” (al-Muddaththir 74:42–43). Bring that fear of Allah with you.
  3. Know that Allah sees you, alone as in company. The Prophet ﷺ spoke of people whose good deeds, like mountains, Allah will make “like scattered dust”. They worship at night as we do, but “when they are alone, transgress the sacred limits of Allah” (Sunan Ibn Mājah 4245). Pray as one who is seen, and when you slip, turn back in hope of His mercy.

Asking after every prayer

A prayer can only restrain a heart that was there for it. So it helps to ask, after each prayer, how present ours really was. An honest “absent” is worth more than a “present” noted to feel better. Presence grows by repeated return.

That is why our Discipline App asks this question after every prayer:

Sample, nothing is saved. After every prayer, choose one word in the Daily tab. How present was the heart? Absent, Drifting, Present or Immersed. Drifting is chosen: presence came and went.
From the Muslim self-discipline app. After each prayer you choose one word for how present your heart was, so you can watch your presence grow over the weeks. Here “Drifting” is chosen.

The same room

So the habit and the prayer were never in separate rooms. Prayer deters from faḥshāʾ, and the help in it is from Allah.

To remember. Prayer restrains from faḥshāʾ (shameful deeds). True prayer asks for khushūʿ (humble presence) and love of Allah. We need Allah’s support. Bring your weakness, and some fear of Allah, into the prayer. A slip is a reason to go to the next prayer, never a reason to leave it.
From the Muslim self-discipline app. “To remember” closes each lesson with its main points in a few lines.

Before you reach for the usual tools next time, sit with one more question:

Reflect. When discomfort comes, what do you reach for first? What if it were prayer?
From the Muslim self-discipline app. “Reflect” gives you a question and a place to answer it. What you write stays on your phone, for you alone.

So let us ask ourselves gently, five times a day, and keep returning until the answer changes.

Have you ever prayed?

This article is adapted from a lesson in our forthcoming Discipline App, and the pictured cards are taken from it. The Arabic words in square brackets in 29:45 are added. The sayings of Ibn ʿAbbās, Abū al-ʿĀliyah and Ibn Masʿūd are from the commentaries of al-Ṭabarī and Ibn Kathīr on 29:45, in our own translation, as is the hadith from Musnad Aḥmad.

Verses are from Dr. Mustafa Khattab’s translation, The Clear Quran.