I heard the Messenger of Allah ﷺ say, "Whoever performs ablution well, then prays without distraction or heedlessness, his previous sins will be forgiven."Yahya once said, "He will be forgiven whatever sins he committed before it."
حدثنا يحيى أخبرنا ابن لهيعة عن بكر بن سوادة عن رجل عن ربيعة بن قيس
سمعت رسول الله ﷺ يقول من توضأ فأحسن الوضوء ثم صلى غير ساه ولا لاه غفر له ما تقدم من ذنبه وقال يحيى مرة غفر ما كان قبلها من سيئة