Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever fasts Ramadan out of faith and seeking reward will have his past sins forgiven, and whoever stands in prayer on Laylat al-Qadr out of faith and seeking reward will have his past sins forgiven."

Azami 10754

Sahih

عن أبي هريرة، قال

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

الأعظمي 10754صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the times
Chapter
Virtues of days and nights
Section
Virtue of Laylat al-Qadr
Numbering
Jami al-Kamil 10754 (2nd edition)
Azami 10754