Abu Hurairah reported,

The Prophet ﷺ said, "Whoever fasts Ramadan out of faith and seeking reward will have his past sins forgiven."Ubayy said, I heard it four times from Sufyan. Once he said, "Whoever fasts Ramadan," and once he said, "Whoever stands in prayer." And, "Whoever stands in prayer on Laylat al-Qadr out of faith and seeking reward will have his past sins forgiven."

Ahmad 7280

Sahih

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

عن أبي هريرة

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

أحمد 7280صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 7280
Ahmad 7280