Islam in general refers to the religion which God Almighty sent His Prophets to teach mankind: The worship of the One God alone (pure Monotheism) while submitting to God's will in gratitude for being given life and innumerable blessings.
Imam Ali Ibn Abi al `Izz al Hanafi
(False) security and despair are tools Satan uses to misguide people. The right attitude for true believer lies in a balance between the two.
That is to say, a servant of God should remain between fear and hope. For, the right and the approved kind of fear is that which acts as a barrier between the servant of God and the things forbidden by God. But, if fear is excessive, then the possibility is that the man will fall into despair and pessimism.
On the other hand the approved state of optimism is of a man who does good in the light of the Law of God and is hopeful of being rewarded for it. Or, conversely, if a man committed a sin, he repents sincerely, and is hopeful of being forgiven. The Almighty said:
“Verily, those who believed, and those who migrated and fought in the way of God, it is they who are hopeful of God’s mercy. And God is very Forgiving, very Merciful.” (Al-Baqarah, 218)
In contrast, if a man indulges in sins and excesses, but is hopeful that he would be forgiven without doing anything good, then, this is self-deception, mere illusion and false hope. Abu ‘All Rowzbari has said, “Fear and hope are like the two wings of a bird. If they are well balanced, the flight will be well balanced. But, If one is stunted, the Right would also be stunted. And, to be sure, if the two are lost, the bird will soon be in the throes of death.” God praises the people of hope and fear in the following verse:
‘Is one who worships devotedly during the night, prostrating himself or standing, fearing the Hereafter, and hoping for the mercy of his Lord (is equal to him who doesn’t do these things)?’ (39: 9)
Hope then also demands fear. If that was not the case, one would be in a state of false security. Conversely, fear demands hope. Without that it would be despair.