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

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."