It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever goes to the mosque for the congregational prayer, (in his walking) one step wipes away one sin and the next step records one good deed for him, (and he gains this virtue) both when going to the mosque and when returning from it."
This is a chain that contains the narrator Abdullah bin Lahi'ah, and he is da'if (weak).
Imam Ahmad bin Hanbal (may Allah have mercy on him) recorded it in his Musnad through al-Hasan bin Musa.
Imam al-Tabarani (may Allah have mercy on him) also recorded it in his Mu'jam, and Imam Ibn Hibban (may Allah have mercy on him) in his Sahih.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 983
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«هذا إسناد فيه عبد الله بن لهيعة، وهو ضعيف» «أخرجه مسند أحمد برقم: 6563، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 2072، وأخرجه صحيح ابن حبان برقم: 2039»