Sayyiduna Abu Musa (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) said: "The farther the distance from which a man walks to the prayer, the greater the reward he receives above all people. And the one who waits for the imam so that he may pray with him is greater in reward than the one who prays and then sleeps."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4978