It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: Whoever performs ablution and performs it well, then goes (towards the mosque), but finds that the people have already performed the prayer, Allah Almighty will grant him a reward equal to that of those who were present at the prayer, and this will not diminish anything from their rewards.
Hadith Referenceالفتح الربانی / أبواب صلاة الجماعة / 2523