Sayyiduna Abu Musa (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, the one who is most deserving of the greatest reward in prayer is the person who comes from the farthest distance, then the one who comes from even farther than that. And the person who waits for the prayer until he performs it with the imam in congregation has a greater reward than the one who prays (alone) and then goes to sleep." The wording of both narrators is the same.