كتاب الصيام
13  
The Book of Fasting
(37)
Chapter: Fasting at the end of Sha'ban
(37)
باب صَوْمِ سَرَرِ شَعْبَانَ ‏
Sahih Muslim 1161 c

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.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، عَنِ الْجُرَيْرِيِّ، عَنْ أَبِي، الْعَلاَءِ عَنْ مُطَرِّفٍ، عَنْ عِمْرَانَ بْنِ حُصَيْنٍ، - رضى الله عنهما - أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ لِرَجُلٍ ‏"‏ هَلْ صُمْتَ مِنْ سُرَرِ هَذَا الشَّهْرِ شَيْئًا ‏"‏ ‏.‏ قَالَ لاَ ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ فَإِذَا أَفْطَرْتَ مِنْ رَمَضَانَ فَصُمْ يَوْمَيْنِ مَكَانَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1161c
In-book reference : Book 13, Hadith 258
USC-MSA web (English) reference : Book 6, Hadith 2608
  (deprecated numbering scheme)