Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) narrates: "Whenever I heard something from the Messenger of Allah (peace and blessings be upon him), Allah Almighty benefited me by it as much as He willed. And Sayyiduna Abu Bakr (may Allah be pleased with him) narrated a hadith to me, and Sayyiduna Abu Bakr (may Allah be pleased with him) spoke the truth, that the Prophet (peace and blessings be upon him) said: 'There is no servant (Shu'bah (may Allah have mercy on him) said: I think he said a Muslim servant) who commits a sin, then performs ablution, then prays two rak'ahs, then seeks forgiveness from Allah Almighty for that sin, except that Allah forgives him.'
Shu'bah (may Allah have mercy on him) said: And he recited one of these two verses: 'Whoever does evil will be recompensed for it' or 'And those who, when they commit an immorality or wrong themselves'."