He passes the test only if he perseveres at all times, is not influenced by the adverse remarks of others and is not discouraged by temporary setbacks. (a) When believers show steadfastness at crucial moments, God sends His special succour, that is, He strikes terror into the hearts of those who deny the truth.
The Family of ‘Imran (Al-‘Imran) 3:149–153
When a man struggles for the cause of religion, he has to undergo different experiences, which are a test of his Faith: he must prove his steadfastness of belief by making sacrifices, crush his self, ignore his material interests, tolerate harassment; and remain steadfast in his devotion to God, even at the cost of his life and property.
Muhammad (Muhammad) 47:31–32