Skip to main content
Dua & Tawakkul

Powerful Duas to Control Your Desires (Nafs)

Back to Blog

To control your desires in Islam, combine sincere dua with practical effort. Ask Allah for refuge from a soul that is never satisfied, seek His help to lower your gaze, and pair your supplication with fasting, dhikr, and good company. Dua moves the heart, while practical means remove the triggers.

Key Facts

The commanding self
An-nafs al-ammarah bis-su (Quran 12:53)
The shield for desire
Fasting (Sahih al-Bukhari and Muslim)
Lowering the gaze
Commanded in Surah An-Nur (24:30 to 31)

How do you control your desires in Islam?

You control your desires in Islam by joining two things together: sincere dua that asks Allah to purify and steady the heart, and practical means that cut off the sources of temptation. Dua without effort is incomplete, and effort without dua forgets that hearts only change by Allah's permission.

Islam never asks you to pretend you have no desires. It teaches you to recognise the nafs, the inner self that pulls toward what feels pleasurable, and then to discipline it through worship, restraint, and constant turning back to Allah. The believer is not someone without desire, but someone whose desire follows what Allah loves.

The sections below give you the authentic duas the Prophet (peace be upon him) taught, the Quranic foundation for restraint, and the practical steps the Sunnah pairs with them. Use the dua to soften the heart and the means to protect the eyes, the company, and the daily habits.

What is the nafs that commands evil?

The nafs that commands evil is called an-nafs al-ammarah bis-su, the soul that constantly urges a person toward sin and lower desire. The Quran names it directly, and understanding it is the first step to controlling your desires, because you cannot fight an enemy you refuse to recognise.

Allah relates the words spoken in the story of Yusuf (peace be upon him): "Indeed, the soul is a persistent commander of evil, except those upon whom my Lord has mercy." (Surah Yusuf 12:53). The verse teaches two truths at once. First, the untrained self naturally leans toward sin. Second, the only real protection is the mercy of Allah, which is exactly why dua matters so much.

So controlling desire is not about hating yourself. It is about training the nafs, lowering its grip through worship, and begging Allah for the mercy that keeps it in check. The goal is to move from a soul that commands evil toward a soul at peace.

The Prophet's dua for a soul that is satisfied

One of the most powerful duas for controlling desire is the supplication in which the Prophet (peace be upon him) sought refuge from a soul that is never satisfied. A restless, greedy self is the engine behind most haram desires, so asking Allah to grant contentment strikes at the root.

The Prophet (peace be upon him) used to say: "O Allah, I seek refuge in You from knowledge that does not benefit, from a heart that does not fear You, from a soul that is not satisfied, and from a supplication that is not answered." (Sahih Muslim). Notice that he linked an unsatisfied soul with a heart that does not fear Allah. When the heart loses awe of Allah, desire runs free.

Make this dua part of your daily routine, especially in moments of temptation. You are not only asking to be saved from one sin, you are asking Allah to reform the very self that keeps producing the craving.

Duas to control desires and when to use them

Different moments call for different supplications. The table below pairs authentic duas with the situation where each one helps most, so you can reach for the right words instead of fighting desire with willpower alone.

Authentic duas for controlling desire and when to use them
Dua (meaning)When to use itSource
I seek refuge in You from a soul that is not satisfiedDaily, and when greed or craving risesSahih Muslim
My Lord, prison is more to my liking than that to which they invite meWhen pulled hard toward a clear sinSurah Yusuf 12:33
O Allah, help me to remember You, thank You, and worship You wellAfter every obligatory prayerSunan Abi Dawud
Asking refuge from a heart that does not fear YouWhen the heart feels hard or carelessSahih Muslim

The dua of Yusuf (peace be upon him) against temptation

When Yusuf (peace be upon him) faced one of the strongest temptations a person can meet, he did not rely on his own strength. He turned immediately to Allah and asked for protection, giving every believer a model for the moment desire becomes overwhelming.

He said: "My Lord, prison is more to my liking than that to which they invite me. And if You do not avert from me their plan, I might incline toward them and be of the ignorant." (Surah Yusuf 12:33). This is a stunning admission. A Prophet acknowledged that without Allah's help, even he could be drawn in. The lesson is humility: never trust your own resolve, always ask Allah to turn the temptation away from you.

Then Allah answered: "So his Lord responded to him and averted from him their plan." (Surah Yusuf 12:34). The dua worked because it was paired with the choice to flee, not to negotiate with desire. Ask Allah to avert the temptation, and physically remove yourself from it.

Lowering the gaze: the Quran's first practical step

The most direct practical command for controlling desire in the Quran is to lower the gaze. The eyes are the entry point for most temptation, so guarding them protects the heart before a desire ever takes root.

Allah says: "Tell the believing men to lower their gaze and guard their chastity. That is purer for them." Then He says: "And tell the believing women to lower their gaze and guard their chastity." (Surah An-Nur 24:30 to 31). The command is given to both men and women, and Allah Himself calls it purer, meaning it cleans the heart and prevents desire from growing.

Lowering the gaze is not about shame, it is about protection. Pair it with a quiet dua in the moment, asking Allah to keep your heart clean. Combine the physical act of looking away with the inner act of turning to Allah, and the desire loses its hold.

Fasting: the Sunnah shield against desire

When dua and lowering the gaze need a stronger support, the Sunnah prescribes fasting as a shield. The Prophet (peace be upon him) named it directly as the remedy for those whose desires are strong but who cannot yet marry.

He said: "O young people, whoever among you can marry, let him marry, for it restrains the gaze and guards chastity. And whoever cannot, let him fast, for it will be a shield for him." (Sahih al-Bukhari and Muslim). Fasting weakens the pull of desire, trains the nafs to obey, and keeps the body and heart focused on worship rather than craving.

This is why the Sunnah answer to overwhelming desire is action, not just feeling guilty. If lawful marriage is possible, it is the protected path. If it is not yet possible, regular voluntary fasting disciplines the self and shields it, exactly as the Prophet (peace be upon him) promised.

Practical means to pair with your dua

Dua is most effective when it is joined with the means Allah has placed in your reach. The Prophet (peace be upon him) taught a supplication to be said after prayer that ties remembrance, gratitude, and good worship together, and these are the daily habits that keep desire in check.

He advised saying after every salah: "Allahumma a'inni ala dhikrika wa shukrika wa husni ibadatik," which means "O Allah, help me to remember You, to thank You, and to worship You in the best way." (Sunan Abi Dawud). A heart busy with dhikr has little room left for haram desire.

  • Lower the gaze and turn away from triggers the moment they appear, online and in person.
  • Avoid the places, screens, and habits that you know awaken desire.
  • Keep good company that reminds you of Allah and discourages sin.
  • Fill empty time with dhikr, Quran, and beneficial work so the nafs stays occupied.
  • Fast regularly if marriage is not yet possible, as the Prophet (peace be upon him) advised.
  • Repent quickly and renew your dua after any slip, without despairing of Allah's mercy.

O young people, whoever among you can marry, let him marry, for it restrains the gaze and guards chastity. And whoever cannot, let him fast, for it will be a shield for him.

Prophet Muhammad (peace be upon him), narrated in Sahih al-Bukhari and Sahih Muslim

Frequently Asked Questions

Powerful Duas to Control Your Desires (Nafs)

Related Pages

Strengthen Your Heart with Guided Quran Learning

Our female Quran teacher helps you connect with the Quran and the manners of Islam at your own pace. Book a free 30-minute trial class today.

Book My Free Trial →

No payment. No commitment. Free 30-minute class.

Book Free Trial