Ali reported: The Prophet, peace and blessings be upon him, said, “Shall I not tell you of that by which Allah expiates sins? Thorough ablution despite hardship, working your feet in walking to the mosque, and waiting in between prayers will fully cleanse one of sins.”
Source: Musnad al-Bazzār 505
Grade: Sahih (authentic) according to Al-Suyuti
عَنْ عَلِيٍّ أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ أَلا أَدُلُّكُمْ عَلَى مَا يُكَفِّرُ اللَّهُ بِهِ الْخَطَايَا إِسْبَاغُ الْوُضُوءِ فِي الْمَكَارِهِ وَأعْمَالُ الأَقْدَامِ إِلَى الْمَسَاجِدِ وَانْتِظَارُ الصَّلاةِ بَعْدَ الصَّلاةِ يَغْسِلُ الْخَطَايَا غَسْلا
505 البحر الزخار بمسند البزار
959 المحدث السيوطي خلاصة حكم المحدث صحيح في الجامع الصغير