60. According to this (verse 82), there are four conditions for forgiveness:
(1) Repentance: to refrain from rebellion, disobedience, shirk or disbelief.
(2) Faith: sincere belief in Allah and the Messenger and the Book and the Hereafter.
(3) Righteous works: to do good deeds according to the instructions of Allah and His Messenger.
(4) Guidance: to follow the right way steadfastly and to refrain from straying into any wrong path.