Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) said: "There is no Muslim who performs ablution and does it well, then walks to one of the houses of Allah (that is, a mosque) and offers an obligatory prayer in it, except that for one step a good deed is recorded for him, for another step a sin of his is erased, and for another step he is raised one degree."
Abu Ya'la recorded it; its chain contains Abd al-A'la bin Abi al-Musawir, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2073