How do I keep my faith strong when fitnah and trials are everywhere?

The short answer

The Prophet ﷺ gave a clear plan: hurry to do good deeds before trials overtake you, keep worshipping Allah even when people are distracted, ask Allah constantly to keep your heart firm, stay with the believers and hold to the Quran and Sunnah, and seek refuge from every fitnah, open and hidden.

Explanation

The Prophet ﷺ warned that trials would come "like a part of the dark night", when a person could be a believer in the morning and a disbeliever by evening, selling his faith for something of this world. His first instruction was not to panic but to act: "Be prompt in doing good deeds" before that time comes 1. Good deeds done in calm times build the strength needed for hard times.

He also gave a huge encouragement: "Worshiping during the period of widespread turmoil is like emigration towards me" 2. When others are swept away, a simple prayer, a fast or a page of Quran carries enormous reward.

Firmness is ultimately a gift from Allah, so ask for it. The Quran teaches the dua, "Our Lord, let not our hearts deviate after You have guided us" 3. The Prophet ﷺ said the hearts of all people are between two of the fingers of the Most Merciful, who turns them as He wills, and he prayed: "O Allah, the Turner of the hearts, turn our hearts to Thine obedience" 4. Allah promises to keep firm those who believe "with the firm word" in this life and the next 5.

Stay close to the right people. When Hudhayfah asked what to do if callers to the Fire appeared speaking "our language", the Prophet ﷺ told him to stick to the main body of the Muslims and their leader 6, echoing the Quran's command to hold together to the rope of Allah and not split apart 7.

Finally, protect yourself with the words he taught his Companions: seek refuge with Allah "from turmoil, its visible and invisible (aspects)" 8.

The evidence

  1. 1
    Hadith Sahih Muslim 118
    Sahih Muslim

    Hurry to do good deeds before trials like dark night, when people sell their faith for the world.

    It is narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) observed:Be prompt in doing good deeds (before you are overtaken) by turbulence which would be like a part of the dark night. During (that stormy period) a man would be a Muslim in the morning and an unbeliever in the evening or he would be a believer in the evening and an unbeliever in the morning, and would sell his faith for worldly goods

    العربية

    حَدَّثَنِي يَحْيَى بْنُ أَيُّوبَ، وَقُتَيْبَةُ، وَابْنُ، حُجْرٍ جَمِيعًا عَنْ إِسْمَاعِيلَ بْنِ جَعْفَرٍ، - قَالَ ابْنُ أَيُّوبَ حَدَّثَنَا إِسْمَاعِيلُ، - قَالَ أَخْبَرَنِي الْعَلاَءُ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ بَادِرُوا بِالأَعْمَالِ فِتَنًا كَقِطَعِ اللَّيْلِ الْمُظْلِمِ يُصْبِحُ الرَّجُلُ مُؤْمِنًا وَيُمْسِي كَافِرًا أَوْ يُمْسِي مُؤْمِنًا وَيُصْبِحُ كَافِرًا يَبِيعُ دِينَهُ بِعَرَضٍ مِنَ الدُّنْيَا ‏"‏ ‏.‏

  2. 2
    Hadith Sahih Muslim 2948
    Sahih Muslim

    Worship during widespread turmoil is like emigrating to the Prophet ﷺ.

    Ma'qil b. Yasar reported Allah's Apostle (ﷺ) as saying:Worshiping during the period of widespread turmoil is like emigration towards me

    العربية

    حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، أَخْبَرَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ مُعَلَّى بْنِ زِيَادٍ، عَنْ مُعَاوِيَةَ بْنِ، قُرَّةَ عَنْ مَعْقِلِ بْنِ يَسَارٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم ح وَحَدَّثَنَاهُ قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا حَمَّادٌ، عَنِ الْمُعَلَّى بْنِ زِيَادٍ، رَدَّهُ إِلَى مُعَاوِيَةَ بْنِ قُرَّةَ رَدَّهُ إِلَى مَعْقِلِ بْنِ يَسَارٍ رَدَّهُ إِلَى النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ الْعِبَادَةُ فِي الْهَرْجِ كَهِجْرَةٍ إِلَىَّ ‏"‏ ‏.‏

  3. 3
    Quran Aal-i-Imraan · 3:8

    The dua asking Allah not to let our hearts deviate after guidance.

    رَبَّنَا لَا تُزِغۡ قُلُوبَنَا بَعۡدَ إِذۡ هَدَيۡتَنَا وَهَبۡ لَنَا مِن لَّدُنكَ رَحۡمَةًۚ إِنَّكَ أَنتَ ٱلۡوَهَّابُ ۝٨

    [Who say], "Our Lord, let not our hearts deviate after You have guided us and grant us from Yourself mercy. Indeed, You are the Bestower

  4. 4
    Hadith Sahih Muslim 2655
    Sahih Muslim

    Hearts are between two fingers of the Most Merciful; the Prophet ﷺ asked the Turner of hearts to turn them to obedience.

    Abdullah b. Amr b. al-'As reported that he heard Allah's Messenger (ﷺ) as saying:Verily, the hearts of all the sons of Adam are between the two fingers out of the fingers of the Compassionate Lord as one heart. He turns that to any (direction) He likes. Then Allahs Messenger (ﷺ) said: 0 Allah, the Turner of the hearts, turn our hearts to Thine obedience

    العربية

    حَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، وَابْنُ، نُمَيْرٍ كِلاَهُمَا عَنِ الْمُقْرِئِ، قَالَ زُهَيْرٌ حَدَّثَنَا عَبْدُ، اللَّهِ بْنُ يَزِيدَ الْمُقْرِئُ قَالَ حَدَّثَنَا حَيْوَةُ، أَخْبَرَنِي أَبُو هَانِئٍ، أَنَّهُ سَمِعَ أَبَا عَبْدِ الرَّحْمَنِ الْحُبُلِيَّ، أَنَّهُ سَمِعَ عَبْدَ اللَّهِ بْنَ عَمْرِو بْنِ الْعَاصِ، يَقُولُ أَنَّهُ سَمِعَ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏"‏ إِنَّ قُلُوبَ بَنِي آدَمَ كُلَّهَا بَيْنَ إِصْبَعَيْنِ مِنْ أَصَابِعِ الرَّحْمَنِ كَقَلْبٍ وَاحِدٍ يُصَرِّفُهُ حَيْثُ يَشَاءُ ‏"‏ ‏.‏ ثُمَّ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ اللَّهُمَّ مُصَرِّفَ الْقُلُوبِ صَرِّفْ قُلُوبَنَا عَلَى طَاعَتِكَ ‏"‏ ‏.‏

  5. 5
    Quran Ibrahim · 14:27

    Allah keeps firm those who believe with the firm word in this world and the Hereafter.

    يُثَبِّتُ ٱللَّهُ ٱلَّذِينَ ءَامَنُواْ بِٱلۡقَوۡلِ ٱلثَّابِتِ فِي ٱلۡحَيَوٰةِ ٱلدُّنۡيَا وَفِي ٱلۡأٓخِرَةِۖ وَيُضِلُّ ٱللَّهُ ٱلظَّٰلِمِينَۚ وَيَفۡعَلُ ٱللَّهُ مَا يَشَآءُ ۝٢٧

    Allah keeps firm those who believe, with the firm word, in worldly life and in the Hereafter. And Allah sends astray the wrongdoers. And Allah does what He wills

  6. 6
    Hadith Sahih al-Bukhari 7084
    Sahih Bukhari

    In times of callers to the Fire, stick to the community of Muslims and their leader.

    Narrated Hudhaifa bin Al-Yaman:The people used to ask Allah's Messenger (ﷺ) about the good but I used to ask him about the evil lest I should be overtaken by them. So I said, "O Allah's Messenger (ﷺ)! We were living in ignorance and in an (extremely) worst atmosphere, then Allah brought to us this good (i.e., Islam); will there be any evil after this good?" He said, "Yes." I said, 'Will there be any good after that evil?" He replied, "Yes, but it will be tainted (not pure.)'' I asked, "What will be its taint?" He replied, "(There will be) some people who will guide others not according to my tradition? You will approve of some of their deeds and disapprove of some others." I asked, "Will there be any evil after that good?" He replied, "Yes, (there will be) some people calling at the gates of the (Hell) Fire, and whoever will respond to their call, will be thrown by them into the (Hell) Fire." I said, "O Allah's Apostle! Will you describe them to us?" He said, "They will be from our own people and will speak our language." I said, "What do you order me to do if such a state should take place in my life?" He said, "Stick to the group of Muslims and their Imam (ruler)." I said, "If there is neither a group of Muslims nor an Imam (ruler)?" He said, "Then turn away from all those sects even if you were to bite (eat) the roots of a tree till death overtakes you while you are in that state

    العربية

    حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، حَدَّثَنَا ابْنُ جَابِرٍ، حَدَّثَنِي بُسْرُ بْنُ عُبَيْدِ اللَّهِ الْحَضْرَمِيُّ، أَنَّهُ سَمِعَ أَبَا إِدْرِيسَ الْخَوْلاَنِيَّ، أَنَّهُ سَمِعَ حُذَيْفَةَ بْنَ الْيَمَانِ، يَقُولُ كَانَ النَّاسُ يَسْأَلُونَ رَسُولَ اللَّهِ صلى الله عليه وسلم عَنِ الْخَيْرِ، وَكُنْتُ أَسْأَلُهُ عَنِ الشَّرِّ، مَخَافَةَ أَنْ يُدْرِكَنِي فَقُلْتُ يَا رَسُولَ اللَّهِ إِنَّا كُنَّا فِي جَاهِلِيَّةٍ وَشَرٍّ فَجَاءَنَا اللَّهُ بِهَذَا الْخَيْرِ، فَهَلْ بَعْدَ هَذَا الْخَيْرِ مِنْ شَرٍّ قَالَ ‏"‏ نَعَمْ ‏"‏‏.‏ قُلْتُ وَهَلْ بَعْدَ ذَلِكَ الشَّرِّ مِنْ خَيْرٍ قَالَ ‏"‏ نَعَمْ، وَفِيهِ دَخَنٌ ‏"‏‏.‏ قُلْتُ وَمَا دَخَنُهُ قَالَ ‏"‏ قَوْمٌ يَهْدُونَ بِغَيْرِ هَدْىٍ، تَعْرِفُ مِنْهُمْ وَتُنْكِرُ ‏"‏‏.‏ قُلْتُ فَهَلْ بَعْدَ ذَلِكَ الْخَيْرِ مِنْ شَرٍّ قَالَ ‏"‏ نَعَمْ، دُعَاةٌ عَلَى أَبْوَابِ جَهَنَّمَ، مَنْ أَجَابَهُمْ إِلَيْهَا قَذَفُوهُ فِيهَا ‏"‏‏.‏ قُلْتُ يَا رَسُولَ اللَّهِ صِفْهُمْ لَنَا‏.‏ قَالَ ‏"‏ هُمْ مِنْ جِلْدَتِنَا، وَيَتَكَلَّمُونَ بِأَلْسِنَتِنَا ‏"‏‏.‏ قُلْتُ فَمَا تَأْمُرُنِي إِنْ أَدْرَكَنِي ذَلِكَ قَالَ ‏"‏ تَلْزَمُ جَمَاعَةَ الْمُسْلِمِينَ وَإِمَامَهُمْ ‏"‏‏.‏ قُلْتُ فَإِنْ لَمْ يَكُنْ لَهُمْ جَمَاعَةٌ وَلاَ إِمَامٌ قَالَ ‏"‏ فَاعْتَزِلْ تِلْكَ الْفِرَقَ كُلَّهَا، وَلَوْ أَنْ تَعَضَّ بِأَصْلِ شَجَرَةٍ، حَتَّى يُدْرِكَكَ الْمَوْتُ، وَأَنْتَ عَلَى ذَلِكَ ‏"‏‏.‏

  7. 7
    Quran Aal-i-Imraan · 3:103

    Hold firmly to the rope of Allah together and do not become divided.

    وَٱعۡتَصِمُواْ بِحَبۡلِ ٱللَّهِ جَمِيعࣰ ا وَلَا تَفَرَّقُواْۚ وَٱذۡكُرُواْ نِعۡمَتَ ٱللَّهِ عَلَيۡكُمۡ إِذۡ كُنتُمۡ أَعۡدَآءࣰ فَأَلَّفَ بَيۡنَ قُلُوبِكُمۡ فَأَصۡبَحۡتُم بِنِعۡمَتِهِۦٓ إِخۡوَٰنࣰ ا وَكُنتُمۡ عَلَىٰ شَفَا حُفۡرَةࣲ مِّنَ ٱلنَّارِ فَأَنقَذَكُم مِّنۡهَاۗ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ لَكُمۡ ءَايَٰتِهِۦ لَعَلَّكُمۡ تَهۡتَدُونَ ۝١٠٣

    And hold firmly to the rope of Allah all together and do not become divided. And remember the favor of Allah upon you - when you were enemies and He brought your hearts together and you became, by His favor, brothers. And you were on the edge of a pit of the Fire, and He saved you from it. Thus does Allah make clear to you His verses that you may be guided

  8. 8
    Hadith Sahih Muslim 2867
    Sahih Muslim

    Seek refuge with Allah from trials, visible and hidden, and from the trial of the Dajjal.

    Abu Sa'id al-Khudri reported:I did not hear this hadith from Allah's Apostle (ﷺ) directly but it was Zaid b. Thabit who narrated it from him. As Allah's Apostle (ﷺ) was going along with us towards the dwellings of Bani an-Najjar, riding upon his pony, it shied and he was about to fall. He found four, five or six graves there. He said: Who amongst you knows about those lying in the graves? A person said: It is I. Thereupon he (the Holy Prophet) said: In what state did they die? He said: They died as polytheists. He said: These people are passing through the ordeal in the graves. If it were not the reason that you would stop burying (your dead) in the graves on listening to the torment in the grave which I am listening to, I would have certainly made you hear that. Then turning his face towards us, he said: Seek refuge with Allah from the torment of Hell. They said: We seek refuge with Allah from the torment of Hell. He said: Seek refuge with Allah from the torment of the grave. They said: We seek refuge with Allah from the torment of the grave. He said: Seek refuge with Allah from turmoil, its visible and invisible (aspects), and they said: We seek refuge with Allah from turmoil and its visible and invisible aspects and he said: Seek refuge with Allah from the turmoil of the Dajjal, and they said We seek refuge with Allah from the turmoil of the Dajjal

    العربية

    حَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ، وَأَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ جَمِيعًا عَنِ ابْنِ عُلَيَّةَ، قَالَ ابْنُ أَيُّوبَ حَدَّثَنَا ابْنُ عُلَيَّةَ، قَالَ وَأَخْبَرَنَا سَعِيدٌ الْجُرَيْرِيُّ، عَنْ أَبِي نَضْرَةَ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، عَنْ زَيْدِ بْنِ ثَابِتٍ، قَالَ أَبُو سَعِيدٍ وَلَمْ أَشْهَدْهُ مِنَ النَّبِيِّ صلى الله عليه وسلم وَلَكِنْ حَدَّثَنِيهِ زَيْدُ بْنُ ثَابِتٍ قَالَ بَيْنَمَا النَّبِيُّ صلى الله عليه وسلم فِي حَائِطٍ لِبَنِي النَّجَّارِ عَلَى بَغْلَةٍ لَهُ وَنَحْنُ مَعَهُ إِذْ حَادَتْ بِهِ فَكَادَتْ تُلْقِيهِ وَإِذَا أَقْبُرٌ سِتَّةٌ أَوْ خَمْسَةٌ أَوْ أَرْبَعَةٌ - قَالَ كَذَا كَانَ يَقُولُ الْجُرَيْرِيُّ - فَقَالَ ‏"‏ مَنْ يَعْرِفُ أَصْحَابَ هَذِهِ الأَقْبُرِ ‏"‏ ‏.‏ فَقَالَ رَجُلٌ أَنَا ‏.‏ قَالَ ‏"‏ فَمَتَى مَاتَ هَؤُلاَءِ ‏"‏ ‏.‏ قَالَ مَاتُوا فِي الإِشْرَاكِ ‏.‏ فَقَالَ ‏"‏ إِنَّ هَذِهِ الأُمَّةَ تُبْتَلَى فِي قُبُورِهَا فَلَوْلاَ أَنْ لاَ تَدَافَنُوا لَدَعَوْتُ اللَّهَ أَنْ يُسْمِعَكُمْ مِنْ عَذَابِ الْقَبْرِ الَّذِي أَسْمَعُ مِنْهُ ‏"‏ ‏.‏ ثُمَّ أَقْبَلَ عَلَيْنَا بِوَجْهِهِ فَقَالَ ‏"‏ تَعَوَّذُوا بِاللَّهِ مِنْ عَذَابِ النَّارِ ‏"‏ ‏.‏ قَالُوا نَعُوذُ بِاللَّهِ مِنْ عَذَابِ النَّارِ فَقَالَ ‏"‏ تَعَوَّذُوا بِاللَّهِ مِنْ عَذَابِ الْقَبْرِ ‏"‏ ‏.‏ قَالُوا نَعُوذُ بِاللَّهِ مِنْ عَذَابِ الْقَبْرِ ‏.‏ قَالَ ‏"‏ تَعَوَّذُوا بِاللَّهِ مِنَ الْفِتَنِ مَا ظَهَرَ مِنْهَا وَمَا بَطَنَ ‏"‏ ‏.‏ قَالُوا نَعُوذُ بِاللَّهِ مِنَ الْفِتَنِ مَا ظَهَرَ مِنْهَا وَمَا بَطَنَ قَالَ ‏"‏ تَعَوَّذُوا بِاللَّهِ مِنْ فِتْنَةِ الدَّجَّالِ ‏"‏ ‏.‏ قَالُوا نَعُوذُ بِاللَّهِ مِنْ فِتْنَةِ الدَّجَّالِ ‏.‏

This answer was compiled with the help of AI, using only the verified texts shown here. Every reference links to its source. If you find a mistake, please report it. Updated 2026-09-24

Report an issue

Tell us what is wrong. Every report is read.

What is the problem?