عَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((مَنْ رَاحَ إِلَى مَسْجِدِ الْجَمَاعَةِ فَخَطْوَةٌ تَمْحُو سَيِّئَةً وَخَطْوَةٌ تُكْتَبُ حَسَنَةً ذَاهِبًا وَرَاجِعًا))
It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: Whoever goes towards the mosque where congregation is held, each of his steps erases one sin and one step is recorded as a good deed, both while going (to the mosque) and while returning.