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.
و حدثنا عبد بن حميد أخبرنا عبد الرزاق أخبرنا معمر عن الزهري عن أبي سلمة
كان رسول الله ﷺ يرغب في قيام رمضان من غير أن يأمرهم فيه بعزيمة فيقول من قام رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه فتوفي رسول الله ﷺ والأمر على ذلك ثم كان الأمر على ذلك في خلافة أبي بكر وصدرا من خلافة عمر على ذلك