Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever purifies himself in his home and then walks to one of the houses of Allah to fulfill one of the obligations imposed by Allah, his two steps are such that one erases a sin and the other raises him a degree."

Muslim 1521

Sahih

حدثني إسحق بن منصور أخبرنا زكرياء بن عدي أخبرنا عبيد الله يعني ابن عمرو عن زيد بن أبي أنيسة عن عدي بن ثابت عن أبي حازم الأشجعي

عن أبي هريرة قال

قال رسول الله ﷺ من تطهر في بيته ثم مشى إلى بيت من بيوت الله ليقضي فريضة من فرائض الله كانت خطوتاه إحداهما تحط خطيئة والأخرى ترفع درجة

مسلم 1521صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Walking to prayer, by which sins are erased and ranks are raised
Numbering
Darussalam 1521
Muslim 1521