Sunan an-Nasa'i · Hadith 705
The Book of the Masjids - كتاب المساجد
أخبرنا عمرو بن علي، قال حدثنا يحيى، قال حدثنا ابن أبي ذئب، قال حدثنا الأسود بن العلاء بن جارية الثقفي، عن أبي سلمة، - هو ابن عبد الرحمن - عن أبي هريرة، عن النبي صلى الله عليه وسلم قال " حين يخرج الرجل من بيته إلى مسجده فرجل تكتب حسنة ورجل تمحو سيئة " .
It was narrated from Abu Hurairah that the Prophet (ﷺ) said: "When a man goes out of his house to his Masjid, one foot records a good deed and the other erases a bad deed."
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).