Sahih al-Bukhari 1901
1802 حدثنا مسلم بن إبراهيم حدثنا هشام حدثنا يحيى عن أبي سلمة عن أبي هريرة رضي الله عنه عن النبي صلى الله عليه وسلم قال من قام ليلة القدر إيمانا واحتسابا غفر له ما تقدم من ذنبه ومن صام رمضان إيمانا واحتسابا غفر له ما تقدم من ذنبه \ 1 \
1802 Muslim ibn Ibrahim related to us, Hisham related to us, Yahya related to us, from Abu Salama, from Abu Hurayra, may Allah be pleased with him, from the Prophet ﷺ, who said: Whoever stands in prayer on the Night of Qadr (Laylat al-Qadr) out of faith and seeking reward, what preceded of his sin will be forgiven him, and whoever fasts Ramadan out of faith and seeking reward, what preceded of his sin will be forgiven him.
Indicative translation