It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Performing ablution (completely) in disliked and difficult conditions, walking to the mosques, and waiting for one prayer after another prayer wash away sins thoroughly."
Abd bin Humayd and Abu Ya'la al-Mawsili also recorded it.
Our Shaykh Abu al-Fadl al-Asqalani (may Allah have mercy on him) said: Al-Darawardi and Abu Damrah recorded it from al-Harith, from Abu al-Ayyas (which is with the letter ya'), from Sa'id bin al-Musayyib (may Allah have mercy on him), from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him). End of quote.
Imam al-Bazzar recorded it with a sahih (authentic) chain, while Imam al-Hakim recorded it and graded it sahih on the condition of Muslim. End of quote.
The origin of this hadith is in the two Sahihs (Bukhari and Muslim) from the narration of Sayyiduna Abu Hurayrah (may Allah be pleased with him), and in the four Sunan from the hadith of Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him).