Abu Hurairah reported,

The Messenger of Allah ﷺ used to encourage standing in prayer during Ramadan without making it a strict obligation. He would say, "Whoever stands in prayer during Ramadan out of faith and seeking reward, his previous sins will be forgiven."

Ahmad 7787

Sahih

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

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

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

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