Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:4599[Chain 1] Abū Bakr Muḥammad b. al-Ḥusayn b. al-Ḥasan al-Qaṭṭān > Aḥmad b. Yūsuf al-Sulamī > ʿAbd al-Razzāq [Chain 2] Ismāʿīl b. Muḥammad al-Ṣaffār > Aḥmad b. Manṣūr > ʿAbd al-Razzāq > Maʿmar > al-Zuhrī > Abū Hurayrah > Rasūl Allāh

[Machine] He ﷺ used to encourage the observance of Ramadan without commanding it with determination. He would say, "Whoever observes Ramadan out of faith and hoping for reward, all of his previous sins will be forgiven." Then the Messenger of Allah ﷺ passed away and Ahmad ibn Mansur al-Ramadi added to this narration during the caliphate of Abu Bakr and a part of the caliphate of Umar.  

البيهقي:٤٥٩٩وَأنبأ أَبُو مُحَمَّدٍ عَبْدُ اللهِ بْنُ يُوسُفَ الْأَصْبَهَانِيُّ إِمْلَاءً أنبأ أَبُو بَكْرٍ مُحَمَّدُ بْنُ الْحُسَيْنِ بْنِ الْحَسَنِ الْقَطَّانُ أنبأ أَحْمَدُ بْنُ يُوسُفَ السُّلَمِيُّ ثنا عَبْدُ الرَّزَّاقِ (ح) وَأنبأ أَبُو الْحُسَيْنِ عَلِيُّ بْنُ مُحَمَّدِ بْنِ عَبْدِ اللهِ بْنِ بِشْرَانَ بِبَغْدَادَ أنبأ إِسْمَاعِيلُ بْنُ مُحَمَّدٍ الصَّفَّارُ ثنا أَحْمَدُ بْنُ مَنْصُورٍ ثنا عَبْدُ الرَّزَّاقِ عَنْ مَعْمَرٍ عَنِ الزُّهْرِيِّ عَنْ أَبِي هُرَيْرَةَ أَنَّ رَسُولَ اللهِ

ﷺ كَانَ يُرَغِّبُ فِي قِيَامِ رَمَضَانَ مِنْ غَيْرِ أَنْ يَأْمُرَهُمْ فِيهِ بِعَزِيمَةٍ فَيَقُولُ مَنْ قَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ فَتُوُفِّيَ رَسُولُ اللهِ ﷺ وَالْأَمْرُ عَلَى ذَلِكَ زَادَ أَحْمَدُ بْنُ مَنْصُورٍ الرَّمَادِيُّ فِي رِوَايَتِهِ فِي خِلَافَةِ أَبِي بَكْرٍ وَصَدْرٍ مِنْ خِلَافَةِ عُمَرَ ؓ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ عَبْدِ بْنِ حُمَيْدٍ عَنْ عَبْدِ الرَّزَّاقِ 4600 وَرَوَاهُ أَيْضًا مَالِكٌ عَنِ الزُّهْرِيِّ عَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ عَنْ أَبِي هُرَيْرَةَ بِمَعْنَاهُ وَقَالَ قَالَ ابْنُ شِهَابٍ فَتُوُفِّيَ رَسُولُ اللهِ ﷺ وَالْأَمْرُ عَلَى ذَلِكَ وَكَانَ الْأَمْرُ عَلَى ذَلِكَ فِي صَدْرِ خِلَافَةِ أَبِي بَكْرٍ وَصَدْرٍ مِنْ خِلَافَةِ ‍عُمَرَ بْنِ الْخَطَّابِ ؓ أَخْبَرَنَا أَبُو أَحْمَدَ الْمِهْرَجَانِيُّ أَنَّ أَبَا بَكْرٍ مُحَمَّدَ بْنَ جَعْفَرٍ الْمُزَكِّي ثنا مُحَمَّدُ بْنُ إِبْرَاهِيمَ الْعَبْدِيُّ ثنا ابْنُ بُكَيْرٍ ثنا مَالِكٌ فَذَكَرَهُ

See similar narrations below:

Collected by Mālik
malik:6-2Mālik > Ibn Shihāb > Abū Salamah b. ʿAbd al-Raḥman b. ʿAwf > Abū Hurayrah

Yahya related to me from Malik from Ibn Shihab from Abu Salama ibn Abd ar-Rahman ibn Awf from Abu Hurayra that the Messenger of Allah ﷺ used to exhort people to watch the night in prayer in Ramadan but never ordered it definitely. He used to say, "Whoever watches the night in prayer in Ramadan with trust and expectancy, will be forgiven all his previous wrong actions." Ibn Shihab said, "The Messenger of Allah ﷺ died while that was still the custom, and it continued to be the custom in the caliphate of Abu Bakr and at the beginning of the caliphate of Umar ibn al-Khattab."  

مالك:٦-٢وَحَدَّثَنِي عَنْ مَالِكٍ عَنِ ابْنِ شِهَابٍ عَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ بْنِ عَوْفٍ عَنْ أَبِي هُرَيْرَةَ

أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يُرَغِّبُ فِي قِيَامِ رَمَضَانَ مِنْ غَيْرِ أَنْ يَأْمُرَ بِعَزِيمَةٍ فَيَقُولُ مَنْ قَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ قَالَ ابْنُ شِهَابٍ فَتُوُفِّيَ رَسُولُ اللَّهِ ﷺ وَالأَمْرُ عَلَى ذَلِكَ ثُمَّ كَانَ الأَمْرُ عَلَى ذَلِكَ فِي خِلاَفَةِ أَبِي بَكْرٍ وَصَدْرًا مِنْ خِلاَفَةِ عُمَرَ بْنِ الْخَطَّابِ