The Messenger of Allah ﷺ said, "Whoever stands in prayer during Ramadan out of faith and seeking reward will have his past sins forgiven."
أخبرنا قتيبة عن مالك عن ابن شهاب عن حميد بن عبد الرحمن
أن رسول الله ﷺ قال من قام رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه
[Sahih] Previously mentioned, no. 1603, and it is in Kubra, no. 1295, 2509.