Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:7801Ibrāhīm b. Khālid > Rabāḥ > Maʿmar > Yaḥyá b. Abū Kathīr > Muḥammad b. ʿAbd al-Raḥman > Abū Hurayrah

[Machine] On the authority of the Messenger of Allah ﷺ, he said: "Every step taken towards prayer is written as a good deed and erases a bad deed."  

أحمد:٧٨٠١حَدَّثَنَا إِبْرَاهِيمُ بْنُ خَالِدٍ حَدَّثَنَا رَبَاحٌ عَنْ مَعْمَرٍ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ عَنْ أَبِي هُرَيْرَةَ

عَنْ رَسُولِ اللهِ ﷺ قَالَ كُلُّ خُطْوَةٍ يَخْطُوهَا إِلَى الصَّلَاةِ يُكْتَبُ لَهُ بِهَا حَسَنَةٌ وَيُمْحَى عَنْهُ بِهَا سَيِّئَةٌ  


See similar narrations below:

Collected by Suyūṭī