“O Abu Ayyub, we have missed out on Jihad this year, and we were told that whoever prays in the four mosques will be forgiven his sins.” He said: “O son of my brother, shall I not tell you of something easier than that? I heard the Messenger of Allah ﷺ say: ‘Whoever performs ablution as he has been commanded, and prays as he has been commanded, will be forgiven his previous (bad) deeds.’” He said: “(Did he not say it) like that, O ‘Uqbah?” He said: “Yes.” (Using translation from Ibn Mājah 1396)
عَاصِمٌ يَا أَبَا أَيُّوبَ فَاتَنَا الْغَزْوُ الْعَامَ وَقَدْ أُخْبِرْنَا أَنَّهُ مَنْ صَلَّى فِي الْمَسْجِدِ وَقَالَ حُجَيْنٌ الْمَسَاجِدِ الْأَرْبَعَةِ غُفِرَ لَهُ ذَنْبُهُ فَقَالَ ابْنَ أَخِي أَدُلُّكَ عَلَى أَيْسَرَ مِنْ ذَلِكَ إِنِّي سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ مَنْ تَوَضَّأَ كَمَا أُمِرَ وَصَلَّى كَمَا أُمِرَ غُفِرَ لَهُ مَا قَدَّمَ مِنْ عَمَلٍ أَكَذَاكَ يَا عُقْبَةُ؟ قَالَ نَعَمْ