Obligation of Praying in a Congregation

Hanafi – Waajib to pray with congregation
Hambali – Fard
Shafii – Sunnah

Congregation in Masjid is sunnat mu-akkada

Someone who does not pray his fard salaah in masjid when it is near one’s house, his prayer will be defective.