Allaah (The Most High) said:

وَمِنَ النَّاسِ مَن يَقُولُ آمَنَّا بِاللَّهِ فَإِذَا أُوذِيَ فِي اللَّهِ جَعَلَ فِتْنَةَ النَّاسِ كَعَذَابِ اللَّهِ وَلَئِن جَاءَ نَصْرٌ مِّن رَّبِّكَ لَيَقُولُنَّ إِنَّا كُنَّا مَعَكُمْ ۚ أَوَلَيْسَ اللَّهُ بِأَعْلَمَ بِمَا فِي صُدُورِ الْعَالَمِينَ

”Of mankind are some who say: “We believe in Allah,” but if they are made to suffer for the sake of Allah, they consider the trial of mankind as Allah’s punishment, and if victory comes from your Lord, (the hypocrites) will say: “Verily! We were with you (helping you).” Is not Allah Best Aware of what is in the breast of the ‘Alamin (mankind and jinns). [29:10]

Reminders from Imaam Sadi (rahimahullaah)

Allaah informed us that there are a people who neither exercise patience when put to trial nor do they stand firm in facing some of the difficult circumstances. When they are beaten or their wealth is confiscated or humiliated in order to make them leave the fold of Islaam and return to falsehood, they consider the trial of mankind as Allaah’s punishment. And if victory comes from your Lord (O Muhammad), they will say: “Verily! We were with you (helping you)’’ because it agrees with their desires. This is the category of people about whom Allaah (The Most High) stated:

وَمِنَ النَّاسِ مَن يَعْبُدُ اللَّهَ عَلَىٰ حَرْفٍ ۖ فَإِنْ أَصَابَهُ خَيْرٌ اطْمَأَنَّ بِهِ ۖ وَإِنْ أَصَابَتْهُ فِتْنَةٌ انقَلَبَ عَلَىٰ وَجْهِهِ خَسِرَ الدُّنْيَا وَالْآخِرَةَ ۚ ذَٰلِكَ هُوَ الْخُسْرَانُ الْمُبِينُ

And among mankind is he who worships Allah as it were, upon the very edge (i.e. in doubt); if good befalls him, he is content therewith; but if a trial befalls him, he turns back on his face (i.e. reverts back to disbelief after embracing Islam). He loses both this world and the Hereafter. That is the evident loss. [22:11]

————————————————————————————————————————————————————–

Abridged and paraphrased. See Tayseer Al-Kareem Ar-Rahmaan Fee Tafseer kalaam Al-Mannaan’ of Imaam Sadi (rahimahullaah)