Abu Hurairah reported,

The Messenger of Allah ﷺ used to encourage standing in prayer during Ramadan without commanding it as a strict obligation. 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 practice remained in this state, and it continued in the same way during the caliphate of Abu Bakr and the early part of the caliphate of Umar.

Muslim 1780

Sahih

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

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

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

مسلم 1780صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Travelers' prayer and its shortening
Chapter
Encouragement to observe the night prayer of Ramadan, which is tarawih
Numbering
Darussalam 1780
Muslim 1780