Abu Hurairah reported,

The Messenger of Allah ﷺ said, and in Bakr's version of the hadith, that he heard the Messenger of Allah ﷺ say, "Tell me, if there were a river at one of your doors in which he bathed five times a day, would any of his dirt remain?"They replied, "No, none of his dirt would remain."He said, "That is the likeness of the five prayers. Through them, Allah wipes away sins."

Muslim 1522

Sahih

و حدثنا قتيبة بن سعيد حدثنا ليث ح وقال قتيبة حدثنا بكر يعني ابن مضر كلاهما عن ابن الهاد عن محمد بن إبراهيم عن أبي سلمة بن عبد الرحمن

عن أبي هريرة

أن رسول الله ﷺ قال وفي حديث بكر أنه سمع رسول الله ﷺ يقول أرأيتم لو أن نهرا بباب أحدكم يغتسل منه كل يوم خمس مرات هل يبقى من درنه شيء قالوا لا يبقى من درنه شيء قال فذلك مثل الصلوات الخمس يمحو الله بهن الخطايا

مسلم 1522صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Walking to prayer, by which sins are erased and ranks are raised
Numbering
Darussalam 1522
Muslim 1522