Muslims should go to the mosque day and night and should love being there. `Abdullah ibn Mas`ud said: “No one should miss the Prayer at the mosque except the ill and the hypocrites.” He also added that the Prophet (peace and blessings be upon him) taught us the means to guidance and one of these means is praying at the mosque.
Sheikh Sayyed Sabiq states in his well-known book Fiqh Us-Sunnah: Abu Hurayrah reported that the Prophet (peace and blessings be upon him) said, “If anyone goes back and forth to the mosque [to attend the Prayers], Allah will prepare for him a feast in Paradise as often as he goes back and forth” (Ahmad, Al-Bukhari, and Muslim).
Abu Sa`id reported that the Prophet (peace and blessings be upon him) said, “If you see a man frequenting the mosque, then testify that he has faith. As Allah says, ‘The attendants of Allah’s mosque are those who believe in Allah and the last day (At-Tawbah: 18)’” (Ahmad, Ibn Majah, Ibn Khuzaymah, Ibn Hibban, and At-Tirmidhi).
Muslim records, on the authority of Abu Hurayrah, that the Messenger of Allah said, “If anyone purifies himself in his house, and then walks to one of the houses of Allah to fulfill one of the obligations laid down by Allah, then [each one] of his steps will erase one of his sins and the next will raise his degrees.”
Abu Ad-Darda’ reported that the Messenger of Allah said, “The mosque is a house for every pious person, and Allah provides everyone whose house is the mosque with comfort, leisure, and a path to Allah’s pleasure, to Paradise” (At-Tabarani and Al-Bazzar).