Good deeds that are conducive to forgiveness of sins

A: It is reported in the Two Sahih (authentic) Collections of Hadith (i.e. Al-Bukhari and Muslim) on the authority of Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings of Allah be upon him) said: Anyone who says: "Subhan Allah wa bihamdihi (All praise and glory are due to Allah)" one hundred times, will have their sins forgiven even if they were like the foam of the sea. i.e. provided that the person has not committed any of the grave sins, by virtue of combining all respective legal proofs of the Book and the Sunnah. For example, Allah (Exalted be He) says: If you avoid the great sins which you are forbidden to do, We shall expiate from you your (small) sins Allah (Glorified be He) also says: And those who, when they have committed Fâhishah (illegal sexual intercourse) or wronged themselves with evil, remember Allâh and ask forgiveness for their sins; - and none can forgive sins but Allâh - and do not persist in what (wrong) they have done, while they know. For such, the reward is Forgiveness from their Lord, and Gardens with rivers flowing underneath (Paradise), wherein they shall abide forever. How excellent is this reward for the doers (who do righteous deeds according to Allâh’s Orders). (Part No. 10; Page No. 280) Similarly, the Prophet Muhammad (peace and blessings of Allah be upon him) also said: The observance of the five obligatory prayers every day, and consistently offering Friday prayer every week, and regularly observing the fast of Ramadan every year are expiations for all (sins) what is committed between these duties, provided that one shuns the major sins. According to another version: If major sins are not committed Thus, if the five obligatory prayers, which are the cornerstone of Islam and the greatest pillar after the profession of faith, and the Friday Prayer and the fast of Ramadan do not grant forgiveness of sins unless a person avoids the major sins, then other acts of worship also cannot atone sins unless the major sins are avoided.May Allah grant us success. May Peace and Blessings be upon our Prophet Muhammad, his family and his Companions.