The Messenger of Allah ﷺ said, "Whoever stands in prayer during the month of Ramadan out of faith and seeking reward will have his past sins forgiven."
أخبرنا قتيبة قال حدثنا سفيان عن الزهري عن أبي سلمة
أن رسول الله ﷺ قال من قام شهر رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه