Sunan Ibn Majah, Book 7, Hadith 4 (Ibn Majah 1641)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

‘Whoever fasts Ramadan out of faith and the hope of reward will be forgiven his previous sins.”