حَدَّثَنَا هَدَّابُ بْنُ خَالِدٍ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ مُطَرِّفٍ، - وَلَمْ أَفْهَمْ مُطَرِّفًا مِنْ هَدَّابٍ - عَنْ عِمْرَانَ بْنِ حُصَيْنٍ، - رضى الله عنهما - أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ لَهُ أَوْ لآخَرَ ‏"‏ أَصُمْتَ مِنْ سَرَرِ شَعْبَانَ ‏"‏ ‏.‏ قَالَ لاَ ‏.‏ قَالَ ‏"‏ فَإِذَا أَفْطَرْتَ فَصُمْ يَوْمَيْنِ ‏"‏ ‏.‏
Translation
Imran b. Husain (Allah be pleased with them) reported that Allah's Apostle (ﷺ) said to a person

Did you observe any fast in the middle of this month (Sha'ban)? He said: No. Thereupon the Messenger of Allah (ﷺ) said: Fast for two days instead of (one fast) when you have completed (fasts of) Ramadan.