It is narrated from Sayyiduna Abu Hurayrah and Sayyiduna Abdullah bin Abbas (may Allah be pleased with them) that the Messenger of Allah (peace and blessings be upon him) delivered a long sermon to us, in which there was also this: "Whoever walks to any one of the mosques of Allah (to perform the prayer), then for every step he takes ten good deeds are written for him, ten bad deeds are erased from his record of deeds, and because of it he is raised ten ranks (in Paradise)."
This hadith is mawdu' (fabricated).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / صفة الصلاة / 564
Hadith Gradingمحدثین:إسناده موضوع
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :قال ابن حجر: هَذَا حَدِيثٌ مَوْضُوعٌ . » «انفرد به المصنف من هذا الطريق»