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]. (ID)
App reference (ID): Book 9, Hadith 63 (ID)
Arabic/English book reference (ID): Book 9, Hadith 1053 (ID)