Protection · resisting temptation

Guarding the Heart

A practical map for recognising temptation early, interrupting it before it becomes action, and returning to Allah without despair after a slip. Transmitted teachings are separated from the app's practical synthesis so guidance is never presented as hadith when it is not.

ثُمَّ لَآتِيَنَّهُم مِّن بَيْنِ أَيْدِيهِمْ وَمِنْ خَلْفِهِمْ وَعَنْ أَيْمَانِهِمْ وَعَن شَمَائِلِهِمْ وَلَا تَجِدُ أَكْثَرَهُمْ شَاكِرِينَ

Then I will certainly come upon them from before them, and from behind them, and from their right and from their left; and You will not find most of them thankful.

Qur'an 7:17

The four approaches

The meanings below follow a narration from Imam al-Bāqir cited in a Shia commentary on Qur'an 7:17. This corrects the looser interpretation currently found in the manuscript.

Approach

From the front

مِن بَيْنِ أَيْدِيهِمْ

What it means

Imam al-Baqir explains this as making the world ahead—the Hereafter—seem light, empty, or too distant to matter. When accountability fades from view, delay feels safe and a present temptation appears more real than its lasting result.

How it may sound

  • “There is plenty of time; I can repent later.”
  • “This one choice will not matter in the end.”
  • Living only for the next pleasure, deadline, or achievement while forgetting the return to Allah.

Defence: Bring tomorrow near

  1. 1Pause at the moment you feel the pull of delay and ask one honest question: 'What am I sending ahead for my meeting with Allah?' Not in a spirit of punishment, but of clear seeing — Shaytan is working to block your view of what is directly in front of you. Allow yourself to look at it.
  2. 2Break the word 'later' with a single immediate action. Perform the nearest duty, or step away from the wrong action now, even if the first step is very small. Movement in the right direction, however slight, breaks the inertia this attack depends on.
  3. 3Build a short daily practice of bringing the Hereafter near. Before sleep, give yourself a quiet minute and ask: 'If I met Allah tonight, what would I bring from today?' This is not meant to produce despair — it is meant to restore the proportion that Shaytan is constantly working to dissolve. Jami' al-Sa'adat prescribes exactly this kind of remembrance as the specific antidote to satanic delay.

Source anchor: Jami' al-Sa'adat prescribes reflection on the Hereafter as a way to break satanic temptation; the manuscript also recommends remembrance of death and immediate action.

Approach

From behind

وَمِنْ خَلْفِهِمْ

What it means

Imam al-Baqir explains this as urging people to pile up wealth and withhold obligatory giving out of fear for children and inheritors. The concern for family may be real, but Satan turns responsible provision into anxiety, possessiveness, or neglect of what Allah has made due.

How it may sound

  • “If I give, I may not have enough later.”
  • Postponing a financial duty while continuing optional spending.
  • Treating accumulated wealth as the source of safety instead of a trust from Allah.

Defence: Answer fear with trust and due action

  1. 1Separate the real need from the imagined threat. Qur'an 2:268 names the fear of poverty as a satanic promise and contrasts it directly with Allah's promise of forgiveness and generosity. A practical test: calculate what you actually owe and what you genuinely need. The feeling of 'not enough' rarely survives an honest reckoning — it is usually a shapeless anxiety, not a real shortfall.
  2. 2Fulfil what is due promptly, in the order your conscience and your marja' specify. Financial obligations left outstanding give this attack more grip over time, not less — the longer they wait, the heavier the imagined cost of paying them becomes. Discharging what is owed is not only an obligation; it is the specific act that breaks the hold.
  3. 3Build generosity into your regular rhythm with something small and sustainable — a fixed sadaqah, a regular gift that leaves your hand before fear can close it. Over time this trains the heart to live by Allah's promise rather than Shaytan's threat, and slowly restores the believer's natural relationship with wealth: a trust held on behalf of the Creator, not a lifeline to grip.

Source anchor: Qur'an 2:268 contrasts Satan's threat of poverty with Allah's promise of forgiveness and bounty. The defence is not reckless spending, but trust joined to responsibility and generosity.

Approach

From the right

وَعَنْ أَيْمَانِهِمْ

What it means

Imam al-Baqir explains this as spoiling spiritual and religious affairs through doubts and dubious matters. This approach can be difficult to notice because it may arrive wearing religious language—turning a question into paralysis, an unverified claim into certainty, or worship into anxiety.

How it may sound

  • “Because I have one doubt, none of my worship has meaning.”
  • Accepting a dramatic religious claim before checking its source.
  • Becoming harsh, obsessive, or hopeless over an issue that requires calm learning.

Defence: Turn vague doubt into verified knowledge

  1. 1Write the exact question — not the feeling, the question. A shapeless dread about religion cannot be answered; a specific question can. 'I am uncertain whether X is permissible' or 'I do not understand the evidence for Y' is workable. 'Everything feels wrong' is Shaytan's preferred shape, precisely because it resists resolution.
  2. 2Seek the answer from its proper sources: the Qur'an, the transmitted teachings of the Ahl al-Bayt, and the guidance of a qualified scholar. Do not resolve religious questions through social media, dramatic claims, or compulsive searching — these tend to add noise rather than clarity. Patient reading and careful, unhurried inquiry are the right tools for a genuine question.
  3. 3Continue the obligations you already know while the question is being resolved. Do not let uncertainty about one matter become a reason to abandon settled duties. If the doubt also carries emotional weight — a feeling of unworthiness or anxiety that will not lift — bring it directly to Allah: 'O Allah, show me truth as truth and give me the strength to follow it.' Sahifa 17 asks for exactly this: the ability to recognise falsehood and see the path to defeating it.
  4. 4If the doubt returns compulsively regardless of the answer — cycling without settling, inflaming regardless of what you learn — treat it as waswasa rather than a genuine question. The cure for compulsive religious doubt is not more answers; it is to act on established knowledge, refuse to re-litigate what has been resolved, and seek refuge in Allah. Debating with waswasa only strengthens it.

Source anchor: Jami' al-Sa'adat treats certainty as the cure for perplexity and doubt. Sahifa 17 asks Allah to make us recognise Satan's falsehood and see how to outwit it.

Approach

From the left

وَعَن شَمَائِلِهِمْ

What it means

Imam al-Baqir explains this as making material pleasures and lusts appear beautiful. The desire is presented without its spiritual cost: the first glance seems harmless, indulgence is renamed self-care, and urgency makes a choice feel unavoidable.

How it may sound

  • “Only once; I deserve this.”
  • Lingering over an image, conversation, place, or thought after the warning has become clear.
  • Renaming a forbidden or harmful act so the conscience no longer reacts to it.

Defence: See through the beauty, then feed the soul

  1. 1Strip the beauty layer before anything else. Shaytan's attack from the left works by coating something harmful with an attractive surface — the damage is hidden, the pleasure is front-lit. The counter-move is honest naming: ask 'What does this actually look like after the desire has passed? What remains when the coating is gone?' Seeing the thing plainly — not what it promises but what it leaves — often dissolves the pull at the source. The beautification depends on your not asking this question.
  2. 2Seek refuge and speak the act's real name, inwardly or aloud. Qur'an 7:201 connects remembrance at the moment of contact with the immediate return of clear sight. Surah al-Nas (114) is specifically addressed to al-khannās — the one who whispers and then retreats. The ta'awwudh is not a recited formula; it is the restoration of the inner clarity that Shaytan's whisper works to cloud.
  3. 3Meet the underlying need through a lawful channel — this is the most important step, because it addresses why this attack lands at all. The drive Shaytan is redirecting toward something harmful is usually not wrong in itself: it may be a hunger for beauty, rest, connection, or pleasure that has a legitimate expression. Find that expression. Rest if you are exhausted. Seek honest companionship if you are lonely. Feed the soul's hunger for beauty through Qur'an, nature, or something genuinely elevating. A heart that is actually nourished is far harder to deceive with a substitute.

Source anchor: Sahifa 17 asks Allah to expose beautified falsehood and bar Satan's entrance into the heart. The manuscript likewise advises reducing inputs and replacing, not merely removing.

Interrupt the chain early

This five-stage map is a practical synthesis of the Qur'anic warning against following Satan's footsteps, Qur'an 7:201, Sahifa 17, and the manuscript's trigger work. It is a training tool, not a transmitted hadith.

  1. Stage 1

    Trigger

    A place, screen, mood, memory, person, or bodily state opens a familiar door.

    Interrupt here: Move early: lower the gaze, close it, leave, or change the setting.

  2. Stage 2

    Whisper

    A suggestion appears. Its arrival is not yet consent and does not define you.

    Interrupt here: Seek Allah's refuge and refuse to rehearse the thought.

  3. Stage 3

    Decoration

    The wrong is renamed: harmless, deserved, necessary, private, or only once.

    Interrupt here: Use plain language. Ask: what is this without the excuse?

  4. Stage 4

    Choice

    Attention becomes intention and the body begins moving toward the act.

    Interrupt here: Break the movement. Put distance between yourself and the means.

  5. Stage 5

    Pattern

    Repetition makes the path faster and the conscience quieter.

    Interrupt here: Repent, repair the environment, and rehearse a different response at the original trigger.

Guiding the nafs — tools from Imam Ali (a)

The motivation

“There are people who worship Allah desiring His reward — this is the worship of merchants. There are people who worship Him out of fear — this is the worship of servants. And there are people who worship Him out of love and gratitude — this is the worship of free people, and it is the finest.”

— Attributed to Imam Ali (a), Ghurar al-Ḥikam

Fear of sin is a beginning. Love of Allah is the destination. Resistance rooted in love replenishes itself; resistance rooted only in fear can exhaust and then collapse. The three tactics below are not about suppression — they are about steering a soul that already wants to move toward Allah.

١

Delay the forbidden

“Deceive the nafs gently until it follows you.”

— Imam Ali (a), Ghurar al-Ḥikam

When the nafs demands something forbidden, say “later” as a firm redirection, not an excuse. The craving’s urgency is usually an illusion. Break the spell and it fades. “Later” often becomes never.

٢

Never delay the duty

The same tactic used wrongly becomes a nafs trick: “I’ll pray later. I’ll repent tomorrow.” This is spiritual procrastination, not wisdom. The rule: delay the sin; do not delay the act of worship.

“The best deeds are those done with constancy, even if small.”

— Attributed to Imam Ali (a), Nahj al-Balagha
٣

Replace with something more beautiful

The nafs craves beauty and ease — these drives are not wrong. Don’t only suppress; redirect. Dhikr instead of empty scrolling. Qur’an or a walk instead of the addictive loop. Feed the soul divine beauty long enough, and it begins to prefer it.

Qur’an 11:114 — “Good deeds erase bad deeds.”

Teaching from Imam Ali (a) as transmitted in Ghurar al-Ḥikam (al-Āmudī) and Nahj al-Balagha. Cross-reference: al-Kāfī on opposing the nafs.

Seven techniques for daily training

These work as a rhythm: prepare in the morning, remain watchful during the day, respond deliberately under pressure, and review at night. Mark only what you genuinely practised today.

0 of 7 practised

Technique 1 · Before the day gathers speed

Begin with two minutes of contemplation

Tafakkur

Temptation gains power when life is lived automatically. Brief reflection restores purpose before the first decision.

  1. 1Sit without the phone for two minutes.
  2. 2Remember one blessing, the purpose for which you were created, and one weakness that needs guarding today.
  3. 3Finish with one concrete intention rather than many vague ambitions.

Source: Imam Khomeini begins the practical programme in the first of Forty Hadith with contemplation, followed by resolution and struggle.

Technique 2 · Each morning

Make a one-day covenant

Musharatah

A whole lifetime can feel overwhelming; a clear promise for one day gives the soul a boundary it can understand.

  1. 1Choose one known doorway of sin or one neglected duty.
  2. 2Say plainly: “Today, for Allah, I will guard this boundary.”
  3. 3Make the condition realistic and specific. Do not create a religious vow or self-imposed legal penalty.

Source: Forty Hadith describes musharatah as binding oneself for the day not to violate Allah's commands, then testing the resolve in ordinary life.

Technique 3 · At transitions and vulnerable moments

Guard the covenant at the doorway

Muraqabah

Watchfulness catches the movement toward wrong while choice is still easy—before attention becomes justification and action.

  1. 1Use prayer times, opening an app, entering a room, or beginning a conversation as checkpoints.
  2. 2Ask: “Does this protect or break this morning's covenant?”
  3. 3If the answer is unclear, pause and do not advance until the matter is verified.

Source: In Forty Hadith, muraqabah is guarding the self throughout the day after setting the morning condition.

Technique 4 · When the same vice keeps returning

Train the opposite virtue

Muʿalajah bi-l-didd

Removing a vice leaves an empty habit. Shia ethical teaching repeatedly treats spiritual illness by practising its balancing virtue.

  1. 1Name the vice precisely: haste, pride, envy, anger, miserliness, or another recurring trait.
  2. 2Choose its opposite action: haste → pause; pride → accept correction; envy → pray for the person; miserliness → give.
  3. 3Repeat one small opposite action consistently until the new response becomes easier.

Source: Jami' al-Sa'adat organises moral treatment around identifying each diseased extreme and cultivating its opposite, balanced virtue.

Technique 5 · When comparison, entitlement, or restlessness rises

Answer the attack with gratitude

Shukr

Satan's statement in Qur'an 7:17 ends with the aim of making people ungrateful. Gratitude therefore confronts the intended result of the attack.

  1. 1Name the specific gift being ignored in this moment.
  2. 2Say Alhamdu lillah with attention, then use that gift in obedience.
  3. 3Turn comparison into a prayer of blessing for the other person and one responsible action with what Allah gave you.

Source: Qur'an 7:17 identifies ingratitude as the intended outcome; Jami' al-Sa'adat defines shukr as recognising the blessing, its Divine source, and using it for nearness.

Technique 6 · When pressure feels stronger than reasoning

Use the two open directions

Duʿa and sujud

The four approaches are horizontal. A Shia commentary cites supplication upward and prostration downward as openings of return to Allah.

  1. 1If possible, make wudu and place the forehead in sujud; otherwise turn to Allah immediately where you are.
  2. 2Ask for recognition of the falsehood, protection from it, and strength to choose its opposite.
  3. 3Use Sahifa Sajjadiyya 17 as the fuller prayer when time allows.

Source: The commentary on Qur'an 7:17 cites du'a and prostration as open ways of deliverance; Sahifa 17 asks Allah for recognition, preparation, and protection.

Technique 7 · Before sleep

Close the day with an honest account

Muhasabah

Daily review turns a vague struggle into knowledge: what opened the door, where the excuse entered, and which defence actually worked.

  1. 1Ask: “Where did I keep my covenant, and where did I break it?”
  2. 2Thank Allah for every success; for a failure, seek forgiveness and repair any right or duty involved.
  3. 3Write one adjustment for tomorrow. Review to learn, not to humiliate yourself.

Source: Imam al-Kazim teaches daily self-accounting in Kitab al-Zuhd; Forty Hadith completes the daily programme with evening examination, gratitude, and repentance.

Use in the moment

The immediate shield

0 of 5

Work down the list without debating the temptation. The aim is to restore remembrance and create enough distance for a free choice.

أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ

Aʿūdhu billāhi min al-shayṭāni al-rajīm

Your checks stay on this device until you reset them.

Work one struggle for forty days

Your Pathway

Choose a struggle and whose method to follow — Imam Khomeini, Naraqi, Imam al-Kazim, or Ayatollah Khamenei — and keep their steps daily.

Patience (Sabr)

Patience is the quality every plan on this page depends on. Without it the intention is made in the morning and abandoned by the afternoon.

الصَّبْرُ مِنَ الإِيمَانِ بِمَنْزِلَةِ الرَّأْسِ مِنَ الجَسَدِ

Al-ṣabru min al-īmāni bi-manzilat al-ra'si min al-jasad

Patience is to faith what the head is to the body.

Nahj al-Balagha, Saying 82

Sabr is not resignation, and it is not quietly putting up with wrong. Ayatollah Khamenei defines it as resistance on the road towards perfection — standing firm against what corrupts and degrades. It is what keeps a person from giving up: continuing to hold the line when the difficulty has not passed, when the effort is not yet working, and when nobody is watching.

This is why patience and faith are bound together. Trust in Allah is what makes the holding possible — a person endures because they believe the outcome is with Him and that the effort is not wasted, even when relief is slow. Faith without patience collapses at the first cost.

The three kinds of patience

First

Patience in hardship

Bearing what has already happened — loss, illness, delay, or a door that stays closed — without letting it break your resistance or turn into despair.

Meets: Despair after a slip

Second

Patience in obedience

Staying with a duty when it is heavy and unrewarding, and resisting the pull of comfort, tiredness, and distraction that would let you postpone it.

Meets: Procrastination in duty

Third

Patience against sin

Holding back at the moment of temptation. This is the hardest of the three, because it works directly against an appetite that is alive and pressing right now.

Meets: Anger and unlawful desire

When you are in the difficulty, name which of the three is being asked of you. What holds in hardship is not what holds against temptation, and treating them as one thing is why patience often fails at the exact point it is needed.

Scholar-guided practice · Discourses on Patience — Sayyid Ali Khamenei; Nahj al-Balagha

Defence plans for specific struggles

Choose the struggle that is active now. Each plan separates the immediate interruption from the character training that happens between difficult moments.

Anger

Scholar-guided practice

Early warning: Heat in the body, rehearsing accusations, typing or speaking faster, and feeling that immediate retaliation is justice.

Do this immediately

  1. 1Seek refuge in Allah and stop speaking or sending.
  2. 2Change posture or leave the setting until the surge passes.
  3. 3Return only when you can state the issue without insult, exaggeration, or revenge.

Train between temptations

Practise hilm: deliberately slow your response, excuse what can be excused, and rehearse calm firmness before the next trigger.

Source: Forty Hadith, Hadith 7; Sahifa 8 and 20

Practical synthesis

My If–Then defence plan

Decide before the heated moment: “If this doorway opens, then I will take this protective action.”

Recognise the open door

Sahifa Sajjadiyya names concrete inner vulnerabilities—craving, wrath, envy, heedlessness, false hopes, and beautified wrong. Naming the door makes a prepared response possible.

False hope and delay

“I will repent or begin later.”

Do the smallest sincere act now. Sahifa 17 explicitly seeks refuge from Satan's false hopes, promises, and delusions.

Craving and passion

Urgency makes a desire feel compulsory.

Delay the desire, leave its fuel, and choose a lawful substitute. Sahifa 8 seeks refuge from agitated craving and urgent passion.

Anger

The body heats and retaliation feels righteous.

Do not speak or send while inflamed. Create distance until the intellect can lead again.

Envy and comparison

Another person's blessing feels like your loss.

Ask Allah to bless them, name one gift already entrusted to you, and refuse the comparison loop.

Doubt dressed as certainty

A troubling thought becomes a ruling before it is checked.

Suspend judgement and verify. Humility protects both faith and other people.

Despair after a slip

“I have failed again, so returning is pointless.”

Reject despair immediately. Allah commands those who wronged themselves not to despair of His mercy (39:53).

When you slip: return, do not spiral

Imam Ali's explanation of sincere istighfar includes regret, resolve, restoring people's rights, and fulfilling neglected obligations. Repentance is hopeful and concrete.

  1. 1

    Stop

    Do not let one slip recruit the next one.

  2. 2

    Regret and return

    Turn to Allah honestly; regret is awareness, not self-hatred.

  3. 3

    Resolve

    Make a real intention not to repeat it, while taking practical means to support that intention.

  4. 4

    Restore

    Return people's rights and make up neglected obligations where required. Ask a qualified scholar when the ruling is unclear.

  5. 5

    Repair the doorway

    Remove the trigger, add a barrier, and follow the wrong with sincere good.

What kind of repair is needed?

Repentance always includes returning to Allah, but the outward repair differs when an obligation or another person's right is involved. This is orientation—not a substitute for your marja's ruling.

Repentance guide

A wrong between you and Allah

Examples: A forbidden act that did not take another person's property or reputation.

Response: Stop, regret, resolve not to return, and seek forgiveness. If a legal expiation or specific remedy may apply, check your marja'.

Repentance guide

A neglected obligation

Examples: Missed prayer, fast, zakat, khums, debt, or another duty.

Response: Repent and fulfil or make up what remains due according to the relevant ruling. Do not guess when details matter.

Repentance guide

Property or financial rights

Examples: Money, goods, wages, debts, inheritance, or damage owed to someone.

Response: Restore the right or its value. If direct return is difficult or unsafe, ask a qualified scholar how to return it correctly.

Repentance guide

Dignity, reputation, or emotional harm

Examples: Backbiting, accusation, humiliation, betrayal, or harmful speech.

Response: Stop the harm and repair what can responsibly be repaired. An apology is not always the correct first step if it would disclose hidden harm or worsen it—seek scholarly guidance.

For long-term character change

Nafs Training — methods of the masters

Four scholarly paths to reshaping character, not just interrupting temptation.

Read the primary devotional source

Supplication 17 of al-Sahifa al-Sajjadiyya is a complete school of protection: recognising falsehood, asking Allah for insight, preparing defences, and refusing Satan's call.

Open Sahifa Supplication 17 ↗

Sources

Qur'an, Shia hadith and devotional works, and recognised Shia ethical scholarship. Practical app steps are explicitly labelled as synthesis and should receive scholar review before publication.