It was narrated from Aws bin Aws that:
The Prophet (ﷺ) said: "Whoever washes (ghassala) and performs ghusl, comes early to the masjid and sits near the imam, and does not engage in idle talk, he will have for every step he takes (the reward of) a year's worth of good deeds, fasting it and praying Qiyam during it."
App reference: Book 14, Hadith 18
English reference: Vol. 2, Book 14, Hadith 1382
Arabic reference: Book 14, Hadith 1392