Abu Hurairah reported,

The Prophet ﷺ 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 4650

Sahih

عن أبي هريرة

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

الأعظمي 4650صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Virtue of Laylat al-Qadr and the striving of the Prophet ﷺ ﷺ in it
Section
Virtue of praying on Laylat al-Qadr
Numbering
Jami al-Kamil 4650 (2nd edition)
Azami 4650