The Muslim must recognize and be aware that it is ultimately only by Allah’s mercy that one will enter paradise:
The Prophet (peace be upon him) said,
“Do good deeds properly, sincerely and moderately, and receive good news because one’s good deeds will NOT make him enter Paradise.” They asked, “Even you, O Allah’s Apostle?” He said, “Even I, unless and until Allah bestows His pardon and Mercy on me.”
So here we see that it’s not by one’s good deeds that one will enter paradise but by Allah’s Mercy. However, Allah has commanded us to do good deeds and we would not be recipient of His mercy unless we obey His commands.
(Sahih al-Bukhari Volume 8, Book 76, Number 474)