Asim said, "Abu Ayub, we missed the campaign this year, and we have been told that whoever prays in the four mosques will have his sins forgiven."He replied, "My nephew, shall I direct you to something easier than that? I heard the Messenger of Allah ﷺ say, 'Whoever performs ablution as commanded and prays as commanded will be forgiven his past deeds.' Is that not so, Uqba?"He said, "Yes."
أخبرنا قتيبة بن سعيد قال حدثنا الليث عن أبي الزبير عن سفيان بن عبد الرحمن عن عاصم بن سفيان الثقفي أنهم غزوا غزوة السلاسل ففاتهم الغزو فرابطوا ثم رجعوا إلى معاوية وعنده أبو أيوب و
عاصم يا أبا أيوب فاتنا الغزو العام وقد أخبرنا أنه من صلى في المساجد الأربعة غفر له ذنبه فقال يا ابن أخي أدلك على أيسر من ذلك إني سمعت رسول الله ﷺ يقول من توضأ كما أمر وصلى كما أمر غفر له ما قدم من عمل أكذلك يا عقبة قال نعم
[Hasan] Ibn Majah narrated it in "Establishing the Prayers," chapter "What Has Been Said About the Prayer Being an Expiation," hadith 1396, from the hadith of Layth bin Saad, transmitted through him. It is also found in Al-Kubra, hadith 140. Ibn Hibban graded it sahih, hadith 166, and it has corroborating narrations.