Sayyidina Ubadah ibn Samit (RA) narrated: We were sitting with the Prophet He said, ‘Pledge to me that you will not associate anything with Allah, you will not steal and will not commit fornication,” and he recited to them a verse (of the Qur’an). He said. “He among you who is faithful to it, his reward is with Allah. And if anyone commits a sin and is punished for that then that is his atonement. And if anyone commits a sin and Allah conceals it for him then it is up to Allah, if He will, He may punish him, if he will, He may forgive him.
[Muslim 1709]