Sunan an-Nasa'i, Book 10, Hadith 80 (Nasa'i 858)

It was narrated that 'Uthman bin 'Affan said:

"I heard the Messenger of Allah (ﷺ) say: 'Whoever does wudu' properly, then walks to (attend) the prescribed prayer, and prays with the people or with the congregation or in the Masjid, Allah will forgive him his sins."