كتاب صلاة المسافرين وقصرها
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 719 a

Mu'adha asked 'A'isha (Allah be pleased with her) how many rak'ahs Allah's Messenger (ﷺ) prayed at the forenoon prayer. She replied:

Four rak'ahs, but sometimes more as he pleased.
حَدَّثَنَا شَيْبَانُ بْنُ فَرُّوخَ، حَدَّثَنَا عَبْدُ الْوَارِثِ، حَدَّثَنَا يَزِيدُ، - يَعْنِي الرِّشْكَ - حَدَّثَتْنِي مُعَاذَةُ، أَنَّهَا سَأَلَتْ عَائِشَةَ - رضى الله عنها - كَمْ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُصَلِّي صَلاَةَ الضُّحَى قَالَتْ أَرْبَعَ رَكَعَاتٍ وَيَزِيدُ مَا شَاءَ ‏.‏
Reference : Sahih Muslim 719a
In-book reference : Book 6, Hadith 93
USC-MSA web (English) reference : Book 4, Hadith 1549
  (deprecated numbering scheme)