Prophet Muhammad, peace and blessings be upon him, said:
The good deeds of any person will not make him enter Paradise (i.e., no one enters paradise only through his good deeds).
The Prophets companions (pbut) asked: Not even you?
The Prophet (pbuh) replied:
Not even myself, unless God bestows His favor and mercy on me.
So be moderate in your religious deeds and do what is within your ability.
None of you should wish for death, for if he is a doer of good, he may increase his good deeds, and if he is an evil doer, he may repent to God.
(Hadith in Sahih Al-Bukhari)