Ayesha reported,

The Messenger of Allah ﷺ went out in the middle of the night and prayed in the mosque. He continued the hadith and said in it, the Messenger of Allah ﷺ used to encourage them to stand in prayer during Ramadan without commanding them with a binding order. He would say, "Whoever stands in prayer during Ramadan out of faith and seeking reward, his previous sins will be forgiven."

Nasai 2197

Sahih

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

عائشة أخبرته

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

النسائي 2197صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Fasting
Chapter
Reward for whoever observed Ramadan in prayer and fasted it out of faith and seeking reward, and the difference of opinion regarding Zuhri concerning the report about that
Numbering
Darussalam 2197
Nasai 2197