(14) باب الْمَشْىِ إِلَى الصَّلاَةِ .
It was narrated that Abu Hurairah said:
"The Messenger of Allah said: 'When one of you performs ablution and does it well, then he comes to the mosque with no other motive but prayer and not seeking anything other than the prayer, he does not take one step but Allah raises him in status one degree thereby, and takes away one of his sins, until he enters the mosque. When he enters the mosque he is in a state of prayer so long as he is waiting for the prayer.'"
Reference: Sunan Ibn Majah 774
In-book reference: Book 4, Hadith 40
English translation: Vol. 1, Book 4, Hadith 774