Abu Hurairah reported,

The Prophet ﷺ said, "Whoever fasts Ramadan out of faith and seeking reward, his previous sins will be forgiven, and whoever stands in prayer during Laylat al-Qadr out of faith and seeking reward, his previous sins will be forgiven."

Azami 10714

Sahih

عن أبي هريرة

عن النبي ﷺ قال: من صام رمضان إيمانا واحتسابا، غفر له ما تقدم من ذنبه، ومن قام ليلة القدر إيمانا واحتسابا غفر له ما تقدم من ذنبه.

الأعظمي 10714صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the times
Chapter
Virtues of the months
Section
Virtue of fasting the month of Ramadan
Numbering
Jami al-Kamil 10714 (2nd edition)
Azami 10714