Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) narrates that he said: "The Messenger of Allah (peace and blessings be upon him) led the morning prayer, then asked: 'Is so-and-so present?' The people said: 'No.' He (peace and blessings be upon him) asked again: 'Is so-and-so present?' They said: 'No.' He (peace and blessings be upon him) asked again: 'Is so-and-so present?' The people said: 'No.' Then he (peace and blessings be upon him) said: 'Indeed, these two prayers are the heaviest upon the hypocrites, and if they knew what (reward) lies in these two prayers, they would surely attend them even if they had to crawl on their knees. The first row is like the row of the angels, and if you knew its virtue, you would race one another for it. A man's praying together with one man is more blessed than his praying alone, and his praying together with two men is more blessed than his praying with one man, and the larger the congregation, the more beloved it is to Allah, the Blessed and Exalted.'"
Imam Ahmad (may Allah have mercy on him) narrated it like this.
Imam Ahmad (may Allah have mercy on him) also narrated it from Waki' (may Allah have mercy on him), from Sufyan (may Allah have mercy on him), from Abu Ishaq (may Allah have mercy on him), from Abdullah bin Abi Basir (may Allah have mercy on him), from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him).
And Abu Dawud al-Tayalisi (may Allah have mercy on him) narrated it from Shu'bah (may Allah have mercy on him), from Abu Ishaq (may Allah have mercy on him), from Abdullah (may Allah have mercy on him), from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him).