It is recommended to perform the daily prayers in congregation, and it is recommended more to perform ṣubḥ, maghrib, and ʿishāʾ prayers in congregation, especially for the neighbours of a mosque and for those who can hear the adhān of a mosque.
Similarly, it is recommended for the other obligatory prayers to be performed in congregation; however, the legality (mashrūʿiyyah) of performing in congregation the prayer for ṭawāf and ṣalāt al‑āyāt – except for lunar and solar eclipses – is not established.