He Does Both Good And Bad Deeds
Question :
A young man, performs all of his religious duties, starting off with the five pillars of Islam. At the same time, though, he also perpetrates some sins; what is the Islamic ruling regarding a person who does both good and bad deeds?
Answer:
Until the sun rises from the west, the door of repentance is open. Every disbeliever and sinner, then, should sincerely repent to Allah Almighty; but what is sincere repentance? To sincerely repent, you must (1) feel remorse for past sins; (2) refrain from those sins, fearing Allah Almighty and glorifying Him; (3) sincerely resolve not to return to those sins.
Whenever a Muslim repents in this fashion, Allâh Almighty erases for him his previous sins, as He said:
"And all of you beg Allah to forgive you all, O believers, that you may be successful."
And:
"And verily, I am indeed Forgiving to him who repents, believes and does righteous good deeds, and then remains constant in doing them."
The Prophet ﷺ said :
"Islam removes what comes before it, and repentance removes what comes before it.".
If he has sinned against another person, he must either return to them their rightful property or seek their pardon, for the Messenger of Allah ﷺ said :
"Whoever has wronged his brother should seek his pardon today, before the time comes when there will be neither Dinar nor Dirham; If the transgressor has good deeds, the person he wronged will take from him according to the wrong done to him. If the transgressor doesn't have good deeds, he will take sins from the person he wronged, and he will bear the responsibility of those sins."
There are many other verses of the Qur'an and sayings of the Prophet that give a similar meaning.
Source:
Ibn Baz
Fatawa Islamiyah, Vol. 7 Pages 269-270-271