Imām Bukhārī narrates: 'Alī ibn 'Abdullāh narrated to us, he said: Yazīd ibn Hārūn narrated to us, he said: Muhammad ibn Mutarrif informed us, from Zaid ibn Aslam, from 'Atā' ibn Yasār, from Abū Hurairah, may Allāh be pleased with him, from the Prophet ﷺ, he said:
Whoever goes to the mosque in the morning, or goes to the mosque in the evening, Allāh the Exalted will prepare his hospitality in Paradise, whenever he goes, morning or evening.
حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، قَالَ أَخْبَرَنَا مُحَمَّدُ بْنُ مُطَرِّفٍ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " مَنْ غَدَا إِلَى الْمَسْجِدِ وَرَاحَ أَعَدَّ اللَّهُ لَهُ نُزُلَهُ مِنَ الْجَنَّةِ كُلَّمَا غَدَا أَوْ رَاحَ ".
Reference: Sahih Al Bukhari 662