The Messenger of Allah ﷺ used to encourage standing in prayer during Ramadan without making it a strict obligation, saying, "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 this way, and it continued so during the caliphate of Abu Bakr and the early part of the caliphate of Umar
.
حدثنا الحسن بن علي ومحمد بن المتوكل قالا حدثنا عبد الرزاق أخبرنا معمر قال الحسن في حديثه ومالك بن أنس عن الزهري عن أبي سلمة
كان رسول الله ﷺ يرغب في قيام رمضان من غير أن يأمرهم بعزيمة ثم يقول من قام رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه فتوفي رسول الله ﷺ والأمر على ذلك ثم كان الأمر على ذلك في خلافة أبي بكر رضي الله عنه وصدرا من خلافة عمر رضي الله عنه
Grading, Muslim narrated it in Sahih Muslim, Prayer of the Traveler, chapter on encouraging the standing prayer of Ramadan, which is tarawih, no. 759, through the hadith of Abdul-Razzaq, and it is in his Musannaf, no. 7719. Malik also narrated it in Muwatta (Yahya, 113, 114), 1/