Sahih Muslim 759 b
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ قَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ "
Abu Huraira reported:
The Messenger of Allah (ﷺ) used to exhort (his Companions) to pray (at night) during Ramadan without commanding them to observe it as an obligatory act, and say: He who observed the night prayer in Ramadan because of faith and seeking his reward (from Allah), all his previous sins would be forgiven. When Allah's Messenger (ﷺ) died, this was the practice, and it continued thus during Abu Bakr's caliphate and the early part of 'Umar's caliphate.
Full reference and source
Sahih Muslim 759 b In-book : Book 6, Hadith 208 USC-MSA web (English) : Book 4, Hadith 1663 (deprecated)
View source on Sunnah.com (opens in a new tab)