Hadiths 10-11 go into details about the rewards of praying in congregation and in the masjid and then the weights applied to good and bad deeds in both intention and action.
See All 101 Episodes of "Riyad al-Salihin"