It wasnarrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ)said: 'Whoever fasts Ramadan and spends its nights in prayer, outoffaith and in hope of reward, his previous sins will be forgiven.'" (DE)
English reference (DE): Vol. 1, Book 5, Hadith 1326 (DE)
Arabic reference (DE): Book 5, Hadith 1387 (DE)