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."Sulayman bin Kathir corroborated this, narrating from Zuhri.

Bukhari 2014

Sahih

حدثنا علي بن عبد الله حدثنا سفيان قال حفظناه وإنما حفظ من الزهري عن أبي سلمة

عن أبي هريرة رضي الله عنه

عن النبي ﷺ قال من صام رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه ومن قام ليلة القدر إيمانا واحتسابا غفر له ما تقدم من ذنبه تابعه سليمان بن كثير عن الزهري

البخاري 2014صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtue of Laylat al-Qadr
Chapter
Virtue of Laylat al-Qadr
Numbering
Darussalam 2014
Bukhari 2014