A hadith like this has been narrated by Abu Huraira with another chain of transmitters…

Sahih Muslim Book 5 Hadith 310

Sahih Muslim #649 c

The Book of Mosques and Places of Prayer 5:310

A hadith like this has been narrated by Abu Huraira with another chain of transmitters with a very slight change of words.

Chapter: The virtue of prayer in congregation, and clarifying the stern warning against staying away from it, and that it is fard kifayah

Grade: Sahih