Ibn 'Umar reported Allah's Apostle (ﷺ) as saying:
قَالَ شُعَيْبٌ وَحَدَّثَنِي نَافِعٌ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، قَالَ تَفْضُلُهَا بِسَبْعٍ وَعِشْرِينَ دَرَجَةً.
The prayer of a person in congregation is twenty-seven times in excess to the prayer said alone.