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.
bayhaqi:4967[Chain 1] Abū ʿAbdullāh Muḥammad b. al-Faḍl b. Laṭīf al-Miṣrī Bimakkah > Abū al-Faḍl al-ʿAbbās b. Muḥammad b. Naṣr al-Rāfiqī > Hilāl b. al-ʿAlāʾ b. Hilāl from my father > ʿUbaydullāh b. ʿAmr [Chain 2] Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Bakr Aḥmad b. al-Ḥasan al-Qāḍī > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-ʿAbbās b. Muḥammad b. Ḥātim al-Dūrī > Zakariyyā b. ʿAdī > ʿUbaydullāh b. ʿAmr al-Raqqī > Zayd b. Abū Unaysah > ʿAdī b. Thābit > Abū Ḥātim al-Ashjaʿī > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said, "Whoever purifies himself in his house and then walks to one of the houses of Allah, and performs one of the obligatory acts of Allah, his steps will erase one sin and raise him one rank. The narration of Al-Hafiz and Al-Qadi states that he performs one of the obligatory acts of Allah, his steps will erase one sin and raise him one rank."  

البيهقي:٤٩٦٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ الْفَضْلِ بْنِ لَطِيفٍ الْمِصْرِيُّ بِمَكَّةَ ثنا أَبُو الْفَضْلِ الْعَبَّاسُ بْنُ مُحَمَّدِ بْنِ نَصْرٍ الرَّافِقِيُّ ثنا هِلَالُ بْنُ الْعَلَاءِ بْنِ هِلَالٍ ثنا أَبِي ثنا عُبَيْدُ اللهِ بْنُ عَمْرٍو ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو بَكْرٍ أَحْمَدُ بْنُ الْحَسَنِ الْقَاضِي قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الْعَبَّاسُ بْنُ مُحَمَّدِ بْنِ حَاتِمٍ الدُّورِيُّ ثنا زَكَرِيَّا بْنُ عَدِيٍّ ثنا عُبَيْدُ اللهِ بْنُ عَمْرٍو الرَّقِّيُّ عَنْ زَيْدِ بْنِ أَبِي أُنَيْسَةَ عَنْ عَدِيِّ بْنِ ثَابِتٍ عَنْ أَبِي حَاتِمٍ الْأَشْجَعِيِّ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ مَنْ تَطَهَّرَ فِي بَيْتِهِ ثُمَّ مَشَى إِلَى بَيْتٍ مِنْ بُيُوتِ اللهِ تَعَالَى فَيَقْضِي فَرِيضَةً مِنْ فَرَائِضِ اللهِ كَانَتْ خُطُوَاتُهُ إِحْدَاهُمَا تَحُطُّ خَطِيئَةً وَالْأُخْرَى تَرْفَعُ دَرَجَةً لَفْظُ حَدِيثِ الْحَافِظِ وَالْقَاضِي وَفِي رِوَايَةِ الْمِصْرِيِّ يُؤَدِّي فَرِيضَةً مِنْ فَرَائِضِ اللهِ كَانَتْ خَطْوَتَاهُ إِحْدَاهُمَا تَحُطُّ عَنْهُ خَطِيئَةً وَالْأُخْرَى تَرْفَعُ لَهُ بِهَا دَرَجَةً  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ إِسْحَاقَ بْنِ مَنْصُورٍ عَنْ زَكَرِيَّا بْنِ عَدِيٍّ