He ﷺ told us that fasting Ramadān with firm belief and hoping for reward leads to one's previous sins being forgiven. Likewise, standing in prayer at night throughout the month leads to one's previous sins being forgiven.