“And perform the prayer, at the two ends of the day and in some hours of the night. Verily, the good deeds remove the evil deeds. That is a reminder for the mindful.” He said: “O Messenger of Allah, is this only for me?” He said: “It is for everyone who acts upon it.”
Sunan Ibn Majah Book 5, Hadith 596