Abu Hurairah (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "He who goes to the mosque in the morning or in the evening, Allah prepares for him a place in Jannah whenever he goes to the mosque in the morning and returns from it in the evening."[Al-Bukhari and Muslim]. (ES)
App reference (ES): Book 9, Hadith 63 (ES)
Arabic/English book reference (ES): Book 9, Hadith 1053 (ES)