كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(13)
Chapter: It is recommended to pray Duha, the least of which is two rak`ah, the best of which is eight, and the average of which is four or six, and encouragement to do so regularly
(13)
باب اسْتِحْبَابِ صَلاَةِ الضُّحَى وَأَنَّ أَقَلَّهَا رَكْعَتَانِ وَأَكْمَلَهَا ثَمَانِ رَكَعَاتٍ وَأَوْسَطَهَا أَرْبَعُ رَكَعَاتٍ أَوْ سِتٌّ وَالْحَثِّ عَلَى الْمُحَافَظَةِ عَلَيْهَا
Sahih Muslim 721 c

Abu Huraira reported:

My friend Abu'l-Qasim (ﷺ) instructed me to do three things, and the rest of the hadith is the same.
وَحَدَّثَنِي سُلَيْمَانُ بْنُ مَعْبَدٍ، حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ، حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ مُخْتَارٍ، عَنْ عَبْدِ اللَّهِ الدَّانَاجِ، قَالَ حَدَّثَنِي أَبُو رَافِعٍ الصَّائِغُ، قَالَ سَمِعْتُ أَبَا هُرَيْرَةَ، قَالَ أَوْصَانِي خَلِيلِي أَبُو الْقَاسِمِ صلى الله عليه وسلم بِثَلاَثٍ ‏.‏ فَذَكَرَ مِثْلَ حَدِيثِ أَبِي عُثْمَانَ عَنْ أَبِي هُرَيْرَةَ ‏.‏
Reference : Sahih Muslim 721c
In-book reference : Book 6, Hadith 104
USC-MSA web (English) reference : Book 4, Hadith 1560
  (deprecated numbering scheme)