Abu Hurairah reported,

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 رضي الله عنه.

Abu Dawud 1371

Sahih

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

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

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

أبو داود 1371صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Ramadan
Chapter
Night prayer during Ramadan
Numbering
Darussalam 1371
Abu Dawud 1371