Benefit of going mosque in the morning and evening:

وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَنْ غَدَا إِلَى الْمَسْجِدِ أَوْ رَاحَ أَعَدَّ اللَّهُ لَهُ نُزُلَهُ مِنَ الْجَنَّةِ كُلَّمَا غَدَا أَوْ رَاحَ
مُتَّفَقٌ عَلَيْهِ (الألباني) : حكم
Meaning:
Abu Huraira reported the Messenger of Allah ( صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ) as saying, “If anyone goes out in the morning or in the evening to the mosque, Allah will prepare for him entertainment in paradise as often as he goes out in the morning or in the evening.”
Bukhari and Muslim
Reference : Mishkat al-Masabih 698 In-book reference : Book 4, Hadith 129

Benefit of going mosque

The persons who go to the mosques regularly are like pegs

وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّ لِلْمَسَاجِدِ أَوْتَادًا ; اَلْمَلَائِكَةُ جُلَسَاؤُهُمْ ، إِنْ غَابُوْا يَفْتَقِدُوْنَهُمْ ، وَإِنْ مَرِضُوْا عَادُوْهُمْ ، وَإِنْ كَانُوْا فِيْ حَاجَةٍ أَعَانُوْهُمْ ثُمَّ قَالَ : جَلِيْسُ الْمَسْجِدِ عَلٰى ثَلَاثِ خِصَالٍ : أَخٌ مُسْتَفَادٌ ، أَوْ كَلِمَةُ حِكْمَةٍ ، أَوْ رَحْمَةٌ مُنْتَظَرَةٌ
الراوي: أبو هريرة المحدث: الألباني - المصدر: صحيح الترغيب - الصفحة أو الرقم: 329 خلاصة حكم المحدث: حسن صحيح
Meaning:
Abu Huraira reported the Messenger of Allah ( صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ) as saying, The mosques have pegs ( The persons who go to the mosques regularly are like pegs ). the angels sit with them; if they are absent, they ( the angels ) look for them; if they are sick, they visit them, and if they are in need, they help them.
Then he ( the Messenger of Allah صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ) said: Sitting in the mosque causes to achieve 3 benefits: They meet such a brother for whom he gets the benefit regarding the religion or ( he can hear ) the words that is wise or ( he gets ) a blessing for which ( he ) is waiting.