How to stop overthinking in Islam: three teachings, and what research finds
Three teachings from the Quran and Sunnah for a mind that keeps looping over the past or the future, and what psychologists have found.
Overthinking mostly runs in two directions. Backwards, it replays something that's already finished, like what you said or what you should have said. Forwards, it rehearses things that haven't happened and may never happen.
The Prophet ﷺ spoke to both. For the past, he taught a sentence to say in place of "if only". For the future, he pointed to the birds, which leave hungry in the morning and come back full by evening. And for the mind that won't settle either way, the Quran says remembering Allah brings hearts to rest.
The short answer has three parts. Stop arguing with what's already happened. Do the part that's yours today and leave the result with Allah. When a loop starts, give your mind something to hold. Each comes from an ayah or an authentic hadith, and psychologists have studied something close to each.
When it's done, leave the "if only" alone
Abu Hurayrah (may Allah be pleased with him) reported that the Messenger of Allah (may Allah's peace and blessings be upon him) said: "The strong believer is better and dearer to Allah than the weak believer, and there is good in both. Adhere to whatever brings you benefit, seek the help of Allah, and do not feel helpless. If something befalls you, do not say: 'Had I done such-and-such, it would have been such-and-such;' rather, say: 'Allah has decreed, and whatever He wills, He does.' Indeed, 'if' opens the way before the devil to act."
The advice has an order to it. Before anything has happened, go after what benefits you, ask Allah for help and don't feel helpless. Once something has gone wrong, leave "if only I had" alone and say the words he gave in its place. In Arabic they're qadaru-llāhi wa mā shā'a faʿal (it's also read qaddara-llāhu, "Allah decreed").
HadeethEnc's explanation of the hadith says this "if" opens the way for the devil "in objecting to the divine decree and lamenting what has been missed." That's the replay at 2 a.m. The thing is over and can't be changed, and the mind keeps going back to argue with it.
The Quran gives a reason to let it go.
مَآ أَصَابَ مِن مُّصِيبَةٍ فِى ٱلْأَرْضِ وَلَا فِىٓ أَنفُسِكُمْ إِلَّا فِى كِتَـٰبٍ مِّن قَبْلِ أَن نَّبْرَأَهَآ ۚ إِنَّ ذَٰلِكَ عَلَى ٱللَّهِ يَسِيرٌ ﴿٢٢﴾ لِّكَيْلَا تَأْسَوْا۟ عَلَىٰ مَا فَاتَكُمْ وَلَا تَفْرَحُوا۟ بِمَآ ءَاتَىٰكُمْ ۗ وَٱللَّهُ لَا يُحِبُّ كُلَّ مُخْتَالٍ فَخُورٍ ﴿٢٣﴾
No disaster strikes upon the earth or among yourselves except that it is in a register before We bring it into being - indeed that, for Allāh, is easy - In order that you not despair over what has eluded you and not exult [in pride] over what He has given you. And Allāh does not like everyone self-deluded and boastful -
Ibn Kathir's commentary on the ayah quotes ʿIkrimah, who takes it for granted that we'll feel both: "Everyone of us feels happiness and grief. However, make your joy with gratitude and endure your grief with patience."
In 2009 the psychologist Neal Roese and seven colleagues published a phone survey of 370 American adults. People rated how much they regretted things and how much they played past actions back in their minds. Both went with more distress, and in people who kept replaying their regrets, regret went with far more of it. It was a single survey, so it can't say which causes which.
Do your part, then leave the result
‘Umar ibn al-Khattāb (may Allah be pleased with him) reported: I heard the Prophet of Allah (may Allah's peace and blessings be upon him) say: "If only you rely upon Allah the way you should, He will provide for you as He provides for birds: They set out hungry in the morning and return with full bellies in the evening."
This hadith opens with "if" too, and in HadeethEnc's Arabic it's the same word, law. The "if" the first hadith warns against is said after something has befallen you, and HadeethEnc ties it to objecting to the decree. Here, its explanation says, the Prophet ﷺ is urging us to rely on Allah.
The birds go out. HadeethEnc's explanation counts their going out as the effort, made "without lethargy and passive reliance", so the trust here includes the day's work. The food itself comes from Allah.
Worry feels like work too, which is part of why it's hard to drop. In 2020 Sandra Llera of Towson University and Michelle Newman of Penn State tested whether it helps. They had 185 students each pick a real problem in their own life, then spend two minutes worrying about it, thinking it through calmly (breaking it into parts and goals), or breathing slowly. Then everyone listed solutions and chose their best one. The worriers came up with as many ideas as the others. But a judge who didn't know the groups rated their chosen solutions a little lower (5.18 out of 7, against 5.77 for the group that thought it through calmly), and the worriers finished more anxious than either other group. The authors call the gap modest.
In another study from Newman's lab the same year, Lucas LaFreniere followed 29 students whose worry met the criteria for generalized anxiety disorder on a questionnaire. They wrote their worries down for ten days and kept track for a month of which ones came true. About 91% didn't, and for seven of the 29 none did. It's a small study, and it only counted worries that could be checked within a month.
Seneca wrote much the same to Lucilius in the first century: "we suffer more often in imagination than in reality."
Decisions loop the same way. Here is the order the Quran gives, in words addressed to the Prophet ﷺ about his Companions.
فَٱعْفُ عَنْهُمْ وَٱسْتَغْفِرْ لَهُمْ وَشَاوِرْهُمْ فِى ٱلْأَمْرِ ۖ فَإِذَا عَزَمْتَ فَتَوَكَّلْ عَلَى ٱللَّهِ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُتَوَكِّلِينَ ﴿١٥٩﴾
So pardon them and ask forgiveness for them and consult them in the matter. And when you have decided, then rely upon Allāh. Indeed, Allāh loves those who rely [upon Him].
Ibn Kathir reads the end of the ayah as meaning that once you've consulted and made a decision, you "trust in Allah over your decision".
Give your mind something to hold
ٱلَّذِينَ ءَامَنُوا۟ وَتَطْمَئِنُّ قُلُوبُهُم بِذِكْرِ ٱللَّهِ ۗ أَلَا بِذِكْرِ ٱللَّهِ تَطْمَئِنُّ ٱلْقُلُوبُ ﴿٢٨﴾
Those who have believed and whose hearts are assured by the remembrance of Allāh. Unquestionably, by the remembrance of Allāh hearts are assured."
This ayah carries on from the end of the one before it, which is about the people Allah guides, those who return to Him. The verb is taṭma'innu. Lane's Lexicon says that, of a heart, it means to become still, calm and at rest, "free from disquietude".
In 2010 Matthew Killingsworth and Daniel Gilbert at Harvard used an iPhone app to ask 2,250 adults, at random moments, what they were doing, whether their mind was on something else and how they felt. Minds were somewhere else in 46.9% of the answers. People were less happy in those moments, and no happier even when the mind had wandered somewhere pleasant.
Trying not to think about something can make it come back. In 1987 Daniel Wegner, then at Trinity University, and three colleagues asked students to say their thoughts aloud for five minutes while trying not to think of a white bear, and to ring a bell each time they did. The bear came up more than once a minute. Afterwards, when they were asked to think of it, it came up more often than it did for students who'd been asked to think of it from the start. In a second experiment, students given one other thing to think of whenever the bear appeared (a red Volkswagen) showed less of that rebound. A white bear is a long way from a real worry, so treat this as a hint.
None of this asks you to empty your mind. The first hadith gives you words to say in place of "if only", and the ayah points you to remembering Allah. For distress, the Prophet ﷺ used to say these words.
Ibn ‘Abbās (may Allah be pleased with him and his father) reported: The Prophet of Allah (may Allah's peace and blessings be upon him) used to say during times of distress: "There is no god but Allah, the Most Great, the Forbearing. There is no god but Allah, the Lord of the Mighty Throne. There is no god but Allah, the Lord of the heavens, the Lord of the earth, and the Lord of the Noble Throne."
A routine to try
In 1983 Thomas Borkovec's lab at Penn State gave students who called themselves worriers a set of instructions for four weeks. Mainly, they were to save their worrying for one half-hour a day, at the same time and place, and to come back to the present when a worry started earlier. They reported less daily worry than students who only kept a record of it. You could build the three teachings into a half-hour like that.
- Pick the time and the place. When a loop starts earlier in the day, tell it "later" and go back to what's in front of you.
- Write the loop down once. If it's about something that's finished, write what happened, say qadaru-llāhi wa mā shā'a faʿal, and stop there.
- If it's about something coming, write the one thing you can do about it tomorrow. If it's a decision, ask someone you trust, decide, and write the decision down.
- Hand over the rest. Make dua about it in your own words, say the words of distress above, and close the notebook.
Ishrah has a lesson on each of the three ("Do not say if only", "The birds go out" and "Hearts find rest"), and they come with the subscription.
If it's more than overthinking
If the loops are there most days, or they're costing you sleep or work, talk to a doctor or a therapist. Getting help is part of doing your part, like the birds going out in the morning. This guide isn't a treatment and can't replace one.
Sources
- The Quran: Al-Hadid 57:22–23, Aal-i-Imran 3:159, Ar-Ra'd 13:27–28. Arabic: the Tanzil Uthmani text. English: Saheeh International, via Quran Foundation (Quran.com). If a verse's Saheeh wording doesn't come through, that verse shows The Quran: A Modern English Translation (ClearQuran) by Talal Itani instead, and the line under it names the translation you're reading.
- Hadith, gradings and explanations from HadeethEnc.com: Sahih Muslim 2664 ("if only"), Musnad Ahmad 205 (the birds, also in at-Tirmidhi and Ibn Majah) and Sahih Muslim 2730 (the words of distress, agreed upon).
- Ibn Kathir, Tafsir (abridged English translation), on 57:23, 3:159 and 13:28.
- Lane, E. W. An Arabic-English Lexicon, root ṭ-m-n, under iṭma'anna (the Internet Archive's copy).
- Roese, N. J., Epstude, K., Fessel, F., Morrison, M., Smallman, R., Summerville, A., Galinsky, A. D. & Segerstrom, S. (2009). Repetitive regret, depression, and anxiety: Findings from a nationally representative survey. Journal of Social and Clinical Psychology, 28(6), 671–688. doi:10.1521/jscp.2009.28.6.671
- Llera, S. J. & Newman, M. G. (2020). Worry impairs the problem-solving process: Results from an experimental study. Behaviour Research and Therapy, 135, 103759. doi:10.1016/j.brat.2020.103759
- LaFreniere, L. S. & Newman, M. G. (2020). Exposing worry's deceit: Percentage of untrue worries in generalized anxiety disorder treatment. Behavior Therapy, 51(3), 413–423. doi:10.1016/j.beth.2019.07.003
- Seneca, Moral Letters to Lucilius, Letter 13, "On Groundless Fears", translated by Richard M. Gummere (1917).
- Killingsworth, M. A. & Gilbert, D. T. (2010). A wandering mind is an unhappy mind. Science, 330(6006), 932. doi:10.1126/science.1192439
- Wegner, D. M., Schneider, D. J., Carter, S. R. & White, T. L. (1987). Paradoxical effects of thought suppression. Journal of Personality and Social Psychology, 53(1), 5–13. doi:10.1037/0022-3514.53.1.5
- Borkovec, T. D., Wilkinson, L., Folensbee, R. & Lerman, C. (1983). Stimulus control applications to the treatment of worry. Behaviour Research and Therapy, 21(3), 247–251. doi:10.1016/0005-7967(83)90206-1. The instructions are as described in Dippel, A., Brosschot, J. F. & Verkuil, B. (2024). Effects of worry postponement on daily worry: A meta-analysis. International Journal of Cognitive Therapy, 17, 160–178. doi:10.1007/s41811-023-00193-x