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.
muslim:1161bHaddāb b. Khālid > Ḥammād b. Salamah > Thābit > Muṭarrif > ʿImrān b. Ḥuṣayn

Did you fast in the middle of Sha'ban? He said: No. Thereupon he (the Holy Prophet) said: If you did not observe fast, then you should observe fast for two days.  

مسلم:١١٦١bحَدَّثَنَا هَدَّابُ بْنُ خَالِدٍ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ عَنْ مُطَرِّفٍ وَلَمْ أَفْهَمْ مُطَرِّفًا مِنْ هَدَّابٍ عَنْ عِمْرَانَ بْنِ حُصَيْنٍ ؓ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لَهُ أَوْ لآخَرَ أَصُمْتَ مِنْ سَرَرِ شَعْبَانَ قَالَ لاَ قَالَ فَإِذَا أَفْطَرْتَ فَصُمْ يَوْمَيْنِ  


See similar narrations below:

Collected by Ibn Ḥibbān, Bayhaqī

ذِكْرُ الْبَيَانِ بِأَنَّ قَوْلَهُ ﷺ «أَصُمْتَ مِنْ سَرَرِ هَذَا الشَّهْرِ؟ »، أَرَادَ بِهِ سِرَارَ شَعْبَانَ

ibnhibban:3588Abū Yaʿlá > ʿAbd al-Aʿlá b. Ḥammād > Ḥammād b. Salamah > Thābit > Muṭarrif > ʿImrān b. Ḥuṣayn

The Messenger of Allah ﷺ asked a man: Did you fast the last day of Sha'ban ? He replied: No. He said: If you did not observe a fast, you must fast for a day. One of the two narrators said: For two days. (Using translation from Abū Dāʾūd 2328)   

ابن حبّان:٣٥٨٨أَخْبَرَنَا أَبُو يَعْلَى قَالَ حَدَّثَنَا عَبْدُ الأَعْلَى بْنُ حَمَّادٍ قَالَ أَخْبَرَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ عَنْ مُطَرِّفٍ عَنْ عِمْرَانَ بْنِ حُصَيْنٍ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَهُ أوَ لِرَجُلٍ أَصُمْتَ مِنْ سَرَرِ شَعْبَانَ شَيْئًا قَالَ لَا قَالَ فَإِذَا أَفْطَرْتَ فَصُمْ يَوْمَيْنِ  

bayhaqi:7969Abū Naṣr Aḥmad b. ʿAlī b. Aḥmad al-Fāmī > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > al-Ḥasan b. Sufyān > Hudbah b. Khālid > Ḥammād b. Salamah > Thābit > Muṭarrif > ʿImrān b. Ḥuṣayn

[Machine] "That the Prophet ﷺ said to him or to a man, 'Did you observe any fast after mid-Sha'ban?' He said, 'No.' The Prophet ﷺ said, 'Then if you can, observe fast for two consecutive days.'"  

البيهقي:٧٩٦٩أَخْبَرَنَاهُ أَبُو نَصْرٍ أَحْمَدُ بْنُ عَلِيِّ بْنِ أَحْمَدَ الْفَامِيُّ ثنا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الْحَسَنُ بْنُ سُفْيَانَ ثنا هُدْبَةُ بْنُ خَالِدٍ ثنا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ عَنْ مُطَرِّفٍ عَنْ عِمْرَانَ بْنِ حُصَيْنٍ

أَنَّ النَّبِيَّ ﷺ قَالَ لَهُ أَوْ لِرَجُلٍ صُمْتَ مِنْ سُرَرِ شَعْبَانَ شَيْئًا؟ قَالَ لَا قَالَ فَإِذَا أَفْطَرْتَ فَصُمْ يَوْمَيْنِ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ هَدَّابِ بْنِ خَالِدٍ