Performing the (obligatory) prayers in congregation is mandatory and required of every believing adult male who has no excuse for not doing so.
{And those who remain patient, seeking their Lord’s Countenance, perform As-Salat (Iqamat-as-Salat), and spend out of that which We have bestowed on them, secretly and openly, and defend evil with good, for such there is a good end} [Surah Al-Rad: 22]
The Prophet (peace and blessings of Allah be upon him) said, “Offering the prayer in congregation carries 27 times greater reward than offering it alone individually.” [Bukhari, Muslim]
Ibn Masud (May Allâh be pleased with him) reported: He who likes to meet Allah tomorrow (i.e., on the Day of Requital) as a Muslim, should take care and observe the Salat when the Adhan is announced for them. Allah has expounded to your Prophet (peace and blessings of Allah be upon him) the ways of right guidance, and these (the prayers) are part of the right guidance. If you have to perform Salat in your houses, as this man who stays away (from the mosque) and performs Salat in his house, you will abandon the Sunnah (practice) of your Prophet (peace and blessings of Allah be upon him), and the departure from the Sunnah of your Prophet (peace and blessings of Allah be upon him)will lead you astray. I have seen the time when no one stayed behind except a well-known hypocrite. I also saw that a man was brought swaying (on account of weakness) between two men till he was set up in a row (in the masjid).
Muslim (Book 04, chapter 85, # 1376)
This Hadith makes the following four points:
1. Emphasis on performing Salat in congregation.
2. The passion of the Companions of the Prophet (peace and blessings of Allah be upon him) for Salat.
3. Evasion(avoidance) from Salat with congregation is a practice of hypocrites.
4. Inducement for following the Sunnah of the Prophet (peace and blessings of Allah be upon him) because evasion from it is bound to lead one astray.