Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "When a servant accepts Islam and his Islam becomes sincere, Allah records for him every good deed he had previously done, and every bad deed he had previously committed is erased. After that, the reckoning begins. A good deed is rewarded tenfold up to seven hundred times, and a bad deed is recorded as one, unless Allah عز وجل overlooks it."

Azami 177

Sahih

عن أبي سعيد الخدري قال

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

الأعظمي 177صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
One who did good deeds during disbelief then embraced Islam
Numbering
Jami al-Kamil 177 (2nd edition)
Azami 177