Sahih al-Bukhari, Book 2, Hadith 31 (Bukhari 38)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "Whoever observes fasts during the month of Ramadan out of sincere faith, and hoping to attain Allah's rewards, then all his past sins will be forgiven."