[Machine] The Prophet ﷺ said, "When a man purifies himself and then goes to the mosque to observe prayer, a scribe writes for him ten rewards for every step he takes towards the mosque. And the one who sits and waits for the prayer is considered as if he is in the state of prayer, and he is recorded among those who are praying from the time he leaves his house until he returns."
عَنْ رَسُولِ اللهِ ﷺ أَنَّهُ قَالَ إِذَا تَطَهَّرَ الرَّجُلُ ثُمَّ مَرَّ إِلَى الْمَسْجِدِ يَرْعَى الصَّلَاةَ كَتَبَ لَهُ كَاتِبَاهُ بِكُلِّ خُطْوَةٍ يَخْطُوهَا إِلَى الْمَسْجِدِ عَشْرَ حَسَنَاتٍ وَالْقَاعِدُ يَرْعَى الصَّلَاةَ كَالْقَانِتِ وَيُكْتَبُ مِنَ الْمُصَلِّينَ مِنْ حِينَ يَخْرُجُ مِنْ بَيْتِهِ حَتَّى يَرْجِعَ