Hadith #509
Chapter: The Book of Virtues
كتاب الفضائل
Arabic Text
وعنه، رضي الله عنه قال: كان رسول الله صلى الله عليه وسلم، يرغب في قيام رمضان من غير أن يأمرهم فيه بعزيمة، فيقول: "من قام رمضان إيمانًا واحتسابًا غفر له ما تقدم من ذنبه" . ((رواه مسلم)).
English Translation
Abu Hurairah (may Allah be pleased with him) reported that the Messenger of Allah ﷺ used to urge (the people) to perform (optional Tarawih) prayer at night during the month of Ramadan. He did not order them or make it obligatory on them. He (ﷺ) said, "Whosoever performs (optional Tarawih) prayers at night during the month of Ramadan, with Faith and in the hope of receiving Allah's reward, will have his past sins forgiven.".
Quran References
Reference: Riyadh al-Salihin, Book 8, Hadith 509
Sunnah.com ref: riyadh-salihin 509
Islam.wiki ID: IWH-67347