"O Abu Ayyub, we missed the general mobilization, but we have been told that whoever prays in the four Masjids will be forgiven his sins." He said: "O son of my brother! I will tell you of something easier than that. I heard the Messenger of Allah (ﷺ) says: 'Whoever performs Wudu' as commanded and prays as commanded, will be forgiven for his previous actions.' Is it not so, O 'Uqbah?" He said: "Yes."
Sunan an-Nasa'i Book 1, Hadith 145