Despair is not permissible, because it is a bad assumption about Allah the Exalted in two ways:
➊ “The despairing person thinks that Allah the Exalted cannot do this thing, whereas He is able to do everything at all times.
➋ He regards the mercy of Allah the Exalted as deficient, whereas Allah the Exalted is Most Merciful and can show mercy to any servant at any time. The person who despairs of His mercy is astray,
as the Exalted Lord says:
﴿وَمَنْ يَّقْنَطُ مِنْ رَّحْمَةِ رَبِّهٖٓ اِلَّا الضَّآلُّوْنَ﴾
Only those who are astray despair of the mercy of their Lord.”
Therefore, it is necessary that, along with keeping the fear of Allah the Exalted in the heart, one also keeps hope in His mercy.
There are two causes of despair:
➊ A person keeps wronging himself and being bold in sins, resolves to persist and remain in them, and then gives up hope in the mercy of Allah the Exalted, thinking that he has destroyed the causes of mercy. In the end this despair becomes his habit, and this is the most that Satan wants to achieve from a human being.
➋ A person takes on so much fear because of the crimes he has committed that, out of ignorance, he comes to think that Allah the Exalted will never forgive him, even if he repents sincerely. In this way he becomes hopeless of the mercy of Allah the Exalted.
A person should not persist in sins; rather, he should leave them and make sincere and firm repentance before Allah the Exalted, and then hold the belief that, through repentance, even the greatest sins are forgiven. This is the end of despair.