Anas bin Malik reported,

A man came to the Prophet ﷺ and said, "Messenger of Allah, I have not left any major sin or minor sin uncommitted."The Prophet ﷺ asked him three times, "Do you not bear witness that there is no god but Allah, and that Muhammad is the Messenger of Allah?"The man replied, "Yes."The Prophet ﷺ said, "That will wipe all of that away."

Azami 12558

Sahih

عن أنس قال

جاء رجل النبي ﷺ فقال: يا رسول الله! ما تركت حاجة ولا داجة إلا قد أتيت قال: أليس تشهد أن لا إله إلا الله، وأن محمدا رسول الله؟ ثلاث مرات. قال: نعم. قال: ذاك يأتي على ذلك.

الأعظمي 12558صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And establish prayer at the two ends of the day and at the approach of the night. Indeed, good deeds do away with misdeeds. That is a reminder for those who remember." 114
Numbering
Jami al-Kamil 12558 (2nd edition)
Azami 12558