Sunan an-Nasa'i, Book 22, Hadith 280 (In-Book)

It was narrated that Abu Hurairah said: "The Messenger of Allah commanded me to pray two Rakahs of Duha, and not to sleep until I had prayed witr, and to fast three days each month."

أَخْبَرَنَا زَكَرِيَّا بْنُ يَحْيَى، قَالَ حَدَّثَنَا أَبُو كَامِلٍ، قَالَ حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ عَاصِمِ بْنِ بَهْدَلَةَ، عَنْ رَجُلٍ، عَنِ الأَسْوَدِ بْنِ هِلاَلٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ أَمَرَنِي رَسُولُ اللَّهِ صلى الله عليه وسلم بِرَكْعَتَىِ الضُّحَى وَأَنْ لاَ أَنَامَ إِلاَّ عَلَى وِتْرٍ وَصِيَامِ ثَلاَثَةِ أَيَّامٍ مِنَ الشَّهْرِ ‏.‏

sunnah.com