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:17456Yaḥyá b. Isḥāq > Ibn Lahīʿah > Shaykh from Maʿāfir > ʿUqbah b. ʿĀmir al-Juhanī

[Machine] I heard the Messenger of Allah ﷺ saying: "When a person performs ablution and goes to the mosque, Allah writes for him rewards for every step he takes to the mosque, equal to ten good deeds. And when he prays in the mosque and then sits in it, he is like a person who is observing fasting and remaining in devotion until he returns."  

أحمد:١٧٤٥٦حَدَّثَنَا يَحْيَى بْنُ إِسْحَاقَ أَخْبَرَنَا ابْنُ لَهِيعَةَ عَنْ شَيْخٍ مِنْ مَعَافِرَ قَالَ سَمِعْتُ عُقْبَةَ بْنَ عَامِرٍ الْجُهَنِيَّ يَقُولُ

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


See similar narrations below:

Collected by Aḥmad
ahmad:17459Ḥasan > Ibn Lahīʿah > Abū Qabīl > Abū ʿUshhānah al-Maʿāfirī > ʿUqbah b. ʿĀmir

[Machine] The Messenger of Allah ﷺ said: "Whoever leaves his house to go to the mosque, for every step he takes, he receives ten rewards. And the one who waits in the mosque for the prayer is like the one who constantly prays, and he continues to receive these rewards until he returns to his home."  

أحمد:١٧٤٥٩حَدَّثَنَا حَسَنٌ حَدَّثَنَا ابْنُ لَهِيعَةَ حَدَّثَنَا أَبُو قَبِيلٍ عَنْ أَبِي عُشَّانَةَ الْمَعَافِرِيِّ عَنْ عُقْبَةَ بْنِ عَامِرٍ قَالَ

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