(51) باب الْمَشْىُ إِلَى الصَّلاَةِ تُمْحَى بِهِ الْخَطَايَا وَتُرْفَعُ بِهِ الدَّرَجَاتُ
Abu Huraira reported:
The Messenger of Allah (may peace be' upon him) said: He who purified himself in his house, and then he walked to one of the houses of Allah for the sake of performing a Fard (obligatory act) out of the Fara'id (obligatory acts) of Allah, both his steps (would be significant) as one of them would obliterate his sin and the second one would raise his status.
Reference: Sahih Muslim 666
In-book reference: Book 5, Hadith 357
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1409