Abu Hurairah reported,

The Messenger of Allah ﷺ used to encourage standing in prayer during Ramadan without making it a binding command. He would say, "Whoever stands in prayer during Ramadan out of faith and seeking reward will have his past sins forgiven."The Messenger of Allah ﷺ passed away while the matter remained as such, and it continued in this way during the caliphate of Abu Bakr and the early part of the caliphate of Umar.

Tirmidhi 808

Sahih

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

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

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

الترمذي 808صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
Encouragement to pray at night during Ramadan and what was narrated about its virtue
Numbering
Darussalam 808
Tirmidhi 808