It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever fasts during Ramadan with faith and seeking reward, his previous sins are forgiven."
Hadith Referenceالسنن المأثورة / باب صيام رمضان / 157
Hadith Takhrijصحیح بخاری، ليلة القدر، باب فضل ليلة القدر، رقم: 2014؛ صحیح مسلم، صلاة المسافرين، باب الترغيب في قيام رمضان وهو التراويح، رقم: 760