Sunan an-Nasa'i
Grading supplied with this record: Hasan (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ تَوَضَّأَ كَمَا أُمِرَ وَصَلَّى كَمَا أُمِرَ غُفِرَ لَهُ مَا قَدَّمَ مِنْ عَمَلٍ "
It was narrated from 'Asim bin Sufyan Ath-Thaqafi that they went out for the battle of As-Salasil, but they missed the fighting, so they kept watch, then they went back to Mu'awiyah, and Abu Ayyub and 'Uqbah bin 'Amir were with him. 'Asim said:
"O Abu Ayyub, we missed the general mobilization, but we have been told that whoever prays in the four Masjids will be forgiven his sins." He said: "O son of my brother! I will tell you of something easier than that. I heard the Messenger of Allah (ﷺ) says: 'Whoever performs Wudu' as commanded and prays as commanded, will be forgiven for his previous actions.' Is it not so, O 'Uqbah?" He said: "Yes."
Full reference and source
Sunan an-Nasa'i English : Vol. 1, Book 1, Hadith 144 Arabic : Book 1, Hadith 145
View source on Sunnah.com (opens in a new tab)