Sa'id bin al-Musayyib (may Allah have mercy on him) narrates from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Performing ablution thoroughly even in disliked and difficult conditions, taking steps (on foot) towards the mosques, and waiting for one prayer after another prayer, wash away sins the way (water) washes a thing thoroughly clean."
Imam Abu Ya'la al-Mawsili also recorded it.
The chain of this hadith is sahih (authentic), and all its narrators are narrators of Sahih Bukhari and Muslim. Imam al-Bazzar and Imam al-Hakim also recorded it, and Imam al-Hakim graded it sahih on the condition of Imam Muslim.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 982
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«هذا إسناد صحيح، رجاله رجال الصحيح، رواه البزار والحاكم وقال: صحيح على شرط مسلم» «أخرجه المستدرك على الصحيحين برقم: 468، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 2122، وأخرجه الأحاديث المختارة برقم: 477، 478»