Al-Ilmam bi-Ahadith al-Ahkam 290
وَعند البُخَارِيّ عَن أبي مُوسَى رَضِيَ اللَّهُ عَنْه، قَالَ: قَالَ النَّبيّ ﷺ : " أعظم النَّاس أجرا فِي الصَّلَاة أبعدهم فأبعدهم ممشى. وَالَّذِي ينْتَظر الصَّلَاة حَتَّى يُصليهَا مَعَ الإِمَام أعظم أجرا من الَّذِي يُصَلِّي ثمَّ ينَام ".
And with al-Bukhari, from Abu Musa, may Allah be pleased with him, who said: The Prophet ﷺ said: "The people with the greatest reward for prayer are those who walk the farthest, and then the next farthest. And the one who waits for the prayer until he prays it with the imam has a greater reward than the one who prays and then sleeps."