It was narrated from Aws bin Aws Ath-Thaqafi that :
The Messenger of Allah (ﷺ) said: "Whoever washes (ghassala) and performs ghusl, and comes early to the masjid and sits near the imam, is attentive and does not engage in idle talk, for every step he takes he will have (the reward of) a year's worth of good deeds, its fasting and Qiyam prayer."
App reference: Book 14, Hadith 35
English reference: Vol. 2, Book 14, Hadith 1399
Arabic reference: Book 14, Hadith 1409