Sayyiduna Abdullah bin Amr (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) said: "Whoever walks to the mosque of the congregation, one step erases a sin of his and one step has a good deed recorded for him, (and this happens) both going and returning."
Ahmad, and Tabarani in al-Mu'jam al-Kabir, recorded it. The narrators of Tabarani are the narrators of the Sahih, and among the narrators of Ahmad is Ibn Lahi'ah.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2072