Sunan an-Nasa'i #705 · The Book of the Masjids

Sunan an-Nasa'iIt was narrated from Abu Hurairah that the Prophet
Sunan an-Nasa'i · Book 8 · The Book of the Masjids
Sunan an-Nasa'i · كتاب 8 · كتاب المساجد
"When a man goes out of his house to his Masjid, one foot records a good deed and the other erases a bad deed
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا يَحْيَى، قَالَ حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ، قَالَ حَدَّثَنَا الأَسْوَدُ بْنُ الْعَلاَءِ بْنِ جَارِيَةَ الثَّقَفِيُّ، عَنْ أَبِي سَلَمَةَ، - هُوَ ابْنُ عَبْدِ الرَّحْمَنِ - عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏
"‏ حِينَ يَخْرُجُ الرَّجُلُ مِنْ بَيْتِهِ إِلَى مَسْجِدِهِ فَرِجْلٌ تُكْتَبُ حَسَنَةً وَرِجْلٌ تَمْحُو سَيِّئَةً ‏"‏ ‏.‏
Reference : Sunan an-Nasa'i 705In-book reference : Book 8, Hadith 18