The Messenger of Allah ﷺ said: 

"He who performed ablution for prayer and performed it properly and then went (to observe) obligatory prayer and offered it along with people or with the congregation or in the mosque, Allah would pardon his sins."

📚Sahih Muslim 232