The virtue of congregational prayer
Praying in congregation at the mosque is better than praying alone by twenty-seven degrees, as reported in the authentic hadith.
A Muslim should attend it whenever able, unless there is a valid excuse such as illness, fear, or anything that prevents reaching the mosque.