Abu Musa Ashari reported,

The Prophet ﷺ said, "The people who receive the greatest reward for prayer are those who walk the farthest to reach it, and the one who waits to pray with the imam has a greater reward than the one who prays and then goes to sleep."

Azami 1738

Sahih

عن أبي موسى قال

قال النبي ﷺ: أعظم الناس أجرا في الصلاة أبعدهم فأبعدهم ممشى، والذي ينتظر الصلاة حتى يصليها مع الإمام أعظم أجرا من الذي يصلي ثم ينام.

الأعظمي 1738صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Obligation of prayer and its virtue
Section
Virtue of walking to prayer
Numbering
Jami al-Kamil 1738 (2nd edition)
Azami 1738