The Messenger of Allah ﷺ said, "Whoever stands in prayer during Ramadan out of faith and seeking reward will have his past sins forgiven, and whoever stands in prayer during Laylat al-Qadr out of faith and seeking reward will have his past sins forgiven."
حدثنا حسن بن موسى قال حدثنا شيبان عن يحيى قال أخبرني أبو سلمة أن
أن رسول الله ﷺ قال من قام رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه ومن قام ليلة القدر إيمانا واحتسابا غفر له ما تقدم من ذنبه
Its isnad is sahih, mentioned previously at 9259.