Sunan an-Nasa'i, Book 22, Hadith 114 (Nasa'i 2208)

It was narrated from Abu Hurairah that the Prophet said:

"Whoever fasts in Ramadan out of faith and in the hope of reward, he will be forgiven his previous sins." '